- Newest
- Most votes
- Most comments
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.
answered a year ago
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
Relevant content
asked 3 years ago
asked 3 years ago
