I have an application configured as follows:
- Sign-in method: OIDC
- Application type: Web Application
- Sign-out redirect URIs:
- Upon logging in, I retrieve the “id_token” property from the response, which I use as the id_token_hint.
Ultimately, the parameter looks like this:
curl --location --request GET 'https://dev-02560628.okta.com/oauth2/default/v1/logout?id_token_hint=eyJraWQiOiJWSHAxdzNK
However, I’m receiving a 400 error, bad request, and I don’t understand what might be wrong with this request. I appreciate your help, regards.
Hi Marco, just to clarify one thing the id token that you provided in the example above is not the real one you are using right (eyJraWQiOiJWSHAxdzNK)? This because the actual id token shouldn’t be that short in format.
Sorry, I forgot to clarify this, that was a sample token, but here’s my original request.
curl --location --request GET 'https://dev-02560628.okta.com/oauth2/default/v1/logout?id_token_hint=eyJraWQiOiJWS'
Thank you.
Hi Marco, thanks for sharing that. I just wanted to rule that option out. If you go into your system logs and search for the error over there. What does the error/warning message state?
Thank you very much for your prompt response, Andrew1, but following the path:
1.- Dashboard
2.- Reports
3.- System Log, there is no record of this error, only the logs for “OIDC access token is granted SUCCESS”, “User accessing Okta admin app SUCCESS”.
Thank you.