Oc whoami: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 13: Line 13:
=Obtaining the OAuth Token=
=Obtaining the OAuth Token=


The following command can be used to obtain the [[OpenShift_Security_Concepts#OAuth_Access_Tokens|OAuth token]] generated by the authorization server after authentication.
The following command can be used to obtain the [[OpenShift_Security_Concepts#OAuth_Access_Tokens|OAuth token]] generated by the [[OpenShift_Security_Concepts#OpenShift_Master_OAuth_Server|authorization server]] after authentication.


  oc whoami -t
  oc whoami -t

Latest revision as of 20:07, 18 January 2018

External

Internal

Overview

Also can be used to report the user context:

oc whoami -c

Obtaining the OAuth Token

The following command can be used to obtain the OAuth token generated by the authorization server after authentication.

oc whoami -t