<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007x7a0pCAAOkta Classic EngineIntegrationsAnswered2024-03-25T13:15:36.000Z2022-08-18T21:14:49.000Z2022-08-20T15:23:19.000Z

RubensF.60365 (Customer) asked a question.

Is the session still active from IdP initiated SAML SSO flow?

Our application receives a POST with a SAML token and validates it (IdP initiated SSO).

 

How can we periodically check if the user session is still active on the Okta side?

 

The session API documentation mentions a "sessionToken", but this token only contains a "sessionIndex" (like "id1660851400516.147903881).


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @RubensF.60365 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some research and you can use the Okta API call Get Session to check if the user in question has an active session or not. I have provided bellow a documentation about Sessions API that might be useful for your use case:

     

    If the user session is valid then a Session object is returned and if it's not, then a 404 Not Found response is returned.

     

    On another note, the Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.

    Expand Post
  • cnwl2 (cnwl2)

    Hey Flaviu, thanks for your reply.

     

    As I mentioned, can't use the sessionIndex that I received in the SAML token:

    Image is not available
    These are the only claims I get from the SAML token:

    Image is not available

    Expand Post
This question is closed.
Loading
Is the session still active from IdP initiated SAML SSO flow?