Failed to access logout url

Hi,

We are having issues trying to logout from our web app.
The url we are sending the request to is : https://xxxxxxxxx.okta.com/oauth2/default/.well-known/logout?id_token_hint={id_token}
{id_token} is the same as the one we are getting on the sign on.
The response is:
{“errorCode”:“E0000022”,“errorSummary”:“The endpoint does not support the provided HTTP method”,“errorLink”:“E0000022”,“errorId”:“oaeNq03KTwfQoWhu2cV0jvGAA”,“errorCauses”:}

Could anyone shed a light on this please?
Thank you

Remove the /.well-known from your path, replace it with v1, and retry. This request url should look more like this: https://xxxxxxxxx.okta.com/oauth2/default/v1/logout

Also makes sure that the base URL for this request matches the one you used in the /authorize call to get tokens. In this example, that would mean your authorize call looks like this: https://xxxxxxxxx.okta.com/oauth2/default/v1/authorize

Thanks very much, that worked!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.