I’m trying to understand SSO, we have been able to do the logout from our system, and now we are trying to revoke the token. The users log in into the system using OIDC with a PKCE process, we have many users using movile devices. To do the revoke we are sending a POST to our revoke endpointwith only two parameters:
token_type_hint=access_token
toker=is the user token
okta’s reply is: “Bad request”, in the documentation I have read another parameter: “Autorization: Basic …”, I undertand in my case the autorization is: Bearer, so how can I do the revoke?
As noted in our documentation, client authentication is required in order to revoke a user’s access or refresh tokens. The format for your client authentication (as you are using PKCE auth) will be different than it would be if you had a client secret, doc’d here.
For any endpoint that specifies client authentication is required, including /revoke, PKCE apps will need to include the client_id in the body of the request instead of supplying a clientId: clientSecret authorization header. See example here.