Oc whoami: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=Internal=
=Internal=


Line 8: Line 10:


  oc whoami -c
  oc whoami -c
=Obtaining the OAuth Token=
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

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