
WilliamR.11087 (Customer) asked a question.

We use cookies to provide the best website experience and to help understand marketing efforts. We may also share data with ad partners to reach potential customers across the web. To learn more, visit our Privacy Policy. Click here for Your Privacy Choices. You may also opt out of this sharing by signaling your preference via GPC, applicable only to the browser signaling the opt-out.
More information
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Select All

We use cookies to provide the best website experience and to help understand marketing efforts. We may also share data with ad partners to reach potential customers across the web. To learn more, visit our Privacy Policy. Click here for Your Privacy Choices. You may also opt out of this sharing by signaling your preference via GPC, applicable only to the browser signaling the opt-out.
More information
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Select All
Hello William,
Based on our documentation for Authentication (https://developer.okta.com/use_cases/authentication/), Oauth2 (https://developer.okta.com/docs/api/resources/oauth2#request-a-token) (which I assume is what you would be using once the access token was generated) and SAML (https://developer.okta.com/standards/SAML/index), I don't believe that is possible. However, I recommend opening up a case with Developer Support (email: developers@okta.com) and running the question by them. At the very least, they should be able to confirm if I am correct - and if not, they should be able to assist with the implementation.Regards,
Andrei Aldea
Technical Support EngineerOkta Global Customer CareHi there, I know that this question is more than 2 years old but there is no definitive answer (or maybe something changed in the meantime), so I'm asking again:
How can we use name_id and/or session_index to revalidate at a later time if the user's session is still valid?
I have a react SPA and implemented a SAML SSO – everything is working as expected so far. Our API receives the SAMLResponse with the name_id and session_index. Based on the name_id we create a new access token for our REST API which react adds to every API call from then on. The API can identify the user based on this token but it should also ask Okta if the user session is still valid. How can we achieve this? Or is SAML not the correct approach for this? Our customer especially asked for SAML so I don't know if OIDC would be an option.