I am not sending the values for state and post_logout_redirect_uri as these 2 are optional, please let me know cale if i need to pass values for both of them ?
You are correct about those parameters being optional. If you are formatting it with /logout?id_token_hint=<id_token> then my guess is you are not sending the request to the auth server that granted the token.
Can you make sure your logout call is going to either
https://{youroktadomain}/oauth2/v1/logout
or
https://{youroktadomain}/oauth2/default/v1/logout
Or for option 2 - if you used another custom auth server instead of default.
The call should be made to the auth server that granted the token.
Well technically if you aren’t allowing ANY cookies then there’s no session to logout from =).
Keep in mind, calls to /logout do not revoke the id token passed in the hint - it kills the sid session cookie that is created when you login to Okta. If you are relying solely on tokens for a user’s session in your application, then you will need to manually clear the ID token out of wherever you have it stored locally.
I’m facing a similar problem , as mentioned in this thread. I grabbed the session token to pass it in the state parameter . Step 1 is to post a curl request to authn server, Step 2: is to post to authorize server
and to get the code and state back.However I’m getting javascript is not enabled in your browser , please enable javascript and try again. Perhaps, I’m wondering if I should post a curl request again from the terminal, to circumvent this issue. Redirect URI and the state value is posted in present in the global variables. Is this an postman issue ?
yet another URL: Custom Authorization Server
{{url}}/oauth2//v1/authorize?client_id={{clientId}}&response_type=code&response_mode=form_post&scope={{scopes}}&redirect_uri=http://localhost:8080&state=