<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
0D54z000099qDDQCA2Okta Classic EngineSingle Sign-OnAnswered2023-06-24T15:00:25.000Z2023-05-05T16:33:41.000Z2023-05-07T11:13:39.000Z
Is there a SAML Single Logout (SLO) API

We are using Okta for SAML logins, and we need a way to perform Single Logout from the SAML based application. Is there API call that can handle SAML Single Logout? What does the SLO request to logout of the Okta session look like. we are looking for an API to send a request for Single Logout and an example of what the Single Logout request looks like.


  • Mihai N. (Okta, Inc.)

    Hi @User165962405017476792 (Customer)​ , Thank you for reaching out to the Okta Community!

     

    SLO would not be something handled via the Okta API. The SLO request would have to be triggered from the application side. 

    Please review the following documentation regarding Okta SLO for details: 

    https://help.okta.com/en-us/Content/Topics/Apps/Apps_Single_Logout.htm

     

    At best, you could leverage the Okta API to close sessions as described in the following documentation, but this would have nothing to do with the app: 

    https://developer.okta.com/docs/reference/api/sessions/#close-session

     

     

    If my answers helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

     

    Hope my answer helps! 

    --------------------------------

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
  • NiallM.34104 (Atlas Identity)

    Hi Mek. Be really careful with SLO. It's not always what people expect. It can be really fragile, and you need to understand the impact when it doesn't work.

     

    If you are asking if you can have your application log the user out of Okta and kill the Okta session, then that's much easier. Just have your application call the Okta signout endpoint. Optionally provide a fromURI to return the user to your application.

     

    https://oktaorgurl/login/signout?fromURI=https://yourapplication.logoutendpoint.

     

    Remember to whitelist the fromURI and that will do the trick

    Expand Post
This question is closed.
Loading
Is there a SAML Single Logout (SLO) API