User OAuth tokens in OpenShift 4
Issue
- How to change / delete the user token for connecting to an OpenShift 4 cluster?
- User token is not changed after deleting the
useroauthaccesstokenrelated object. - Command
oc whoami --show-tokenand commandoc get UserOAuthAccessTokenshows different token. - When doing an
oc logout, the token from the OpenShift web console used is no longer valid, even if the expiration was not yet passed. -
Invalid token error after using
oc logoutcommand:error: The token provided is invalid or expired.
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- OAuth
ocCLI
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.