I assume you are trying to extract the token to programmatically administer your cluster. If you are already logged in as a user via CLI, maybe you can try:
"oc whoami --show-token"
Another option is to log in to the OpenShift console and, click on the dropdown beside your login username on the top right hand corner > copy Login command. This will direct you to another page for authentication. Login with same credential you used to access the console and on the page, click on "Display token" to view the OAUTH token for the authenticated user.
Remember to treat the token with same level of privacy you accord your username and password for your cluster.
Hello cstauss1,
I might be able to offer a response by
learning a little more about what you're
attempting to do.
Thanks cstauss1
I assume you are trying to extract the token to programmatically administer your cluster. If you are already logged in as a user via CLI, maybe you can try:
"oc whoami --show-token"
Another option is to log in to the OpenShift console and, click on the dropdown beside your login username on the top right hand corner > copy Login command. This will direct you to another page for authentication. Login with same credential you used to access the console and on the page, click on "Display token" to view the OAUTH token for the authenticated user.
Remember to treat the token with same level of privacy you accord your username and password for your cluster.
Thanks-very helpful
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.