Skip to content

configured Okta as an OIDC Identity Provider in AWS Cognito logout issues

0

I have configured Okta as an OIDC Identity Provider in AWS Cognito and login is working successfully. However, the Okta session is not being fully cleared during logout. Could you please guide me on how to properly terminate the Okta session during the logout process?

asked a year ago177 views

2 Answers
0

To properly terminate an Okta session when using Okta as an OIDC provider with AWS Cognito, you need to implement a two-step logout process. First, sign the user out of Cognito using the standard Cognito logout endpoint and then , redirect the user to Okta's logout endpoint , passing the ID token received during authentication and specifying where to redirect after logout. This ensures both the Cognito session and the underlying Okta session are properly terminated, preventing users from being automatically logged back in when returning to your application. Remember to register your post-logout redirect URI in your Okta application settings for this flow to work correctly. Here is the documentation for your reference.

AWS

answered a year ago

0

Hey,

Hope you're keeping well.

When Amazon Cognito is configured with Okta as an OIDC IdP, the default /logout endpoint in Cognito only clears the Cognito session and cached tokens—it does not automatically terminate the upstream Okta session. To fully sign the user out, you must perform a federated logout by calling Cognito’s hosted UI logout endpoint with the logout_uri parameter set to an application URL that will then redirect to the Okta end-session endpoint.

Thanks and regards,
Taz

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.