Este contenido no está disponible en el idioma seleccionado.
Chapter 3. Authentication
3.1. Authorization Tokens Copiar enlaceEnlace copiado en el portapapeles!
3.1.1. Introduction to Authorization Tokens Copiar enlaceEnlace copiado en el portapapeles!
Scope | Description | Validity |
---|---|---|
session | Access to all API functions against an account. | 1 day |
read | Read-only access to account resources, but cannot view authorization tokens. | 1 month |
userinfo | Access to login name, unique id, and user capabilities. | 1 month |
rhc setup
command is initially run to configure the client tools, the setup wizard prompts you to create an authorization token. If you answer YES
, the wizard creates a session token in the ~/.openshift
directory. With this token, all client tool commands can be run without entering your login credentials each time. When the token expires you are automatically prompted to reenter login information to renew the existing token. See the OpenShift Enterprise Client Tools Installation Guide for more information on installing and configuring the client tools.
rhc setup
command to create one.
rhc logout
command to delete the token.
3.1.2. Creating Authorization Tokens Copiar enlaceEnlace copiado en el portapapeles!
rhc authorization add --scopes Scope --note Name
$ rhc authorization add --scopes Scope --note Namerhc authorization add --scopes Scope --note Namerhc authorization add --scopes Scope --note Namerhc authorization add --scopes Scope --note Name
--scopes
option, and a name for the token with the --note
option.
Example 3.1. Creating an Authorization Token
--token token_string
global option to run rhc
commands as the user associated with the authorization token that was provided.
3.1.3. Viewing Authorization Tokens Copiar enlaceEnlace copiado en el portapapeles!
rhc authorization list
$ rhc authorization list
Example 3.2. Viewing Authorization Tokens
3.1.4. Deleting Authorization Tokens Copiar enlaceEnlace copiado en el portapapeles!
Delete one or more tokens with the following command, separating multiple tokens with commas:
rhc authorization delete token_1, token_2
$ rhc authorization delete token_1, token_2 rhc authorization delete token_1, token_2
Delete all tokens associated with your account with the following command:
rhc authorization delete-all
$ rhc authorization delete-all