<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
0D54z000078cgQZCAYOkta Classic EngineAuthenticationAnswered2021-08-26T04:03:49.000Z2021-08-25T19:39:31.000Z2021-08-26T04:03:49.000Z

MartinS.17734 (Customer) asked a question.

Ambassador Logout

Hi,

I have a problem with logout in my web application.

 

I'm using Ambassador as my ingress for my web application that is deployed on K8S, but get an error with the RP-initiated logout. I found this article that mentions that Okta is not fully supported by Ambassador (https://blog.getambassador.io/rp-initiated-logout-security-fixes-and-more-94a04756368c)

 

So I tried to log-out via SLO for OIDC as described here (https://help.okta.com/en/prod/Content/Topics/Apps/Apps_Single_Logout.htm).

 

But when I call GET https://{baseUrl}/logout?id_token_hint=${id_token} with my Okta domain and an ID token I get a 404 error.

 

Any idea what I'm doing wrong or how I could support logout from my web app behind an Ambassador gateway?


  • Hello @MartinS.17734 (Customer)​ 

     

    Following the documentation, the URL looks great.

     

    Now, this is something else that you can check:

     

    The /logout authorization server endpoint requires two parameters to be sent:

    - id_token_hint = an ID token that was issued to the currently logged in user using the current session

    - post_logout_redirect_uri = a URL where to send the user after logging out the user in Okta, URL which needs to be added also in Okta under Admin >> Applications >> your OIDC application >> Logout Redirect URIs

     

    There are two ways to log out the user from the application:

     

    - call the logout method of the SDK used (or delete session manually if a method is not present) and then redirect to Okta's /logout endpoint with post_logout_redirect_uri being the URL to the login page; once the user is logged out from Okta he will arrive back on the log in page of your application.

     

    - redirect to Okta's /logout endpoint with post_logout_redirect_uri being the URL for closing the session inside the application; once the user is logged out from Okta, he will be redirected to the logout endpoint on your application's side and, from there, you can redirect him to the login page.

     

    Regards,

     

    Natalia

    Okta Inc.

    Expand Post
This question is closed.
Loading
Ambassador Logout