Issue with token revocation
-
I’m having an issue with asking for a new token after token revocation.
Here is my process:
1) I start to log in to my app.
2) The app starts oauth2 authentication with my WP server.
3) I enter my credentials and everything goes well, so I get logged in into my app.
4) I log out of my app. This revokes the access token.
5) I start to log in to my app again.
6) I’m already logged in the WP server, so it does not ask for my credentials this time.
7) I get an authentication error on my app because it did not get the access token from the OAuth2 WP server.Looking at the log, I see this error on the response:
Authorization code doesn't exist or is invalid for the client
My guess is that even though I revoked the token, the server is sending the same authorization code, which is then refused when trying to get the token. But the server should be sending a new authorization code as the previous token was revoked.
Am I making sense?
- The topic ‘Issue with token revocation’ is closed to new replies.