I have implemented Okta login through OIDC for my Flask based Python application.
oidc.logout() doesn’t properly log the user out as their session is kept active in Okta, so they are automatically re-authenticated.
I am attempting to log them out of Okta by redirecting them to the logout URL. As far as I understand I need to redirect them to:
<Okta URL>/oauth2/default/v1/logout?id_token_hint=<ID TOKEN HINT>&post_logout_redirect_uri=<REDIRECT URL>"
I cannot for the life of me figure out how to get the id_token_hint from Flask. Can anyone help?