Skip to content

Commit 9398199

Browse files
committed
auth
1 parent 3a40fa7 commit 9398199

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

Diff for: modules/ccs-gcp-customer-procedure-wif.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ For more information about the support scope of Red Hat Developer Preview featur
6161
$ ocm login --use-auth-code
6262
----
6363
+
64-
Running this command will redirect you to the Red Hat SSO login.
64+
Running this command will redirect you to the Red Hat SSO login. Log in with your Red{nbsp}Hat login or email.
6565
+
6666
.. If you are working with containers, remote hosts, and other environments without a web browser, run the Red{nbsp}Hat single sign-on (SSO) device code command for secure authentication:
6767

@@ -71,11 +71,11 @@ Running this command will redirect you to the Red Hat SSO login.
7171
----
7272
$ ocm login --use-device-code
7373
----
74-
Running this command will redirect you to the Red Hat SSO login and provide a log in code.
74+
Running this command will redirect you to the Red{nbsp}Hat SSO login and provide a log in code.
7575

7676
+
7777

78-
To switch accounts, logout from https://sso.redhat.com and run the `ocm logout` command before attempting to login again.
78+
To switch accounts, logout from https://sso.redhat.com and run the `ocm logout` command in your terminal before attempting to login again.
7979

8080
+
8181

Diff for: modules/rosa-configure.adoc

+14-12
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Use the following commands to configure the {product-title} (ROSA) CLI, `rosa`.
1010

1111
[id="rosa-login_{context}"]
1212
== login
13-
There are several methods you can use to log into your Red{nbsp}Hat account using the {product-title} (ROSA) CLI (`rosa`).These methods are described in detail below.
13+
There are several methods you can use to log into your Red{nbsp}Hat account using the {product-title} (ROSA) CLI (`rosa`). These methods are described in detail below.
1414

1515
[IMPORTANT]
1616
====
17-
An offline authentication token is long-lived, stored on your operating system, and cannot be revoked. These factors increase overall security risks and the likelihood of unauthorized access to your account. Alternatively, the Red{nbsp}Hat secure browser-based single sign-on (SSO) method automatically sends your CLI instance a refresh token that is valid for 10 hours. Because this authorization code is unique and temporary, it is more secure and the Red{nbsp}Hat recommended method of authentication.
17+
An offline authentication token is long-lived, stored on your operating system, and cannot be revoked. These factors increase overall security risks and the likelihood of unauthorized access to your account. Alternatively, the Red{nbsp}Hat secure browser-based single sign-on (SSO) method automatically sends your CLI instance a refresh token that is valid for 10 hours. Because this authorization code is unique and temporary, it is more secure and is the Red{nbsp}Hat recommended method of authentication.
1818
====
1919

2020
// Furthermore, offline authentication tokens are usually stored on your device by your operating system, which means other apps on your machine can access a token if the token is not properly secured. These offline tokens are long-lived and cannot be revoked. Users must copy and paste them manually which creates a security risk. Because of these factors, Red{nbsp}Hat recommends using the single sign-on method when logging into your account with the ROSA CLI (`rosa`). This method is more secure than logging in with an offline token.
@@ -34,7 +34,7 @@ If your system supports a web-based browser, you can log in to the ROSA CLI (`ro
3434
$ rosa login --use-auth-code
3535
----
3636
+
37-
Running this command will redirect you to the Red{nbsp}Hat SSO login.
37+
Running this command will redirect you to the Red{nbsp}Hat SSO login. Log in with your Red{nbsp}Hat login or email.
3838
+
3939
.Optional arguments inherited from parent commands
4040
[cols="30,70"]
@@ -49,7 +49,7 @@ Running this command will redirect you to the Red{nbsp}Hat SSO login.
4949

5050
|===
5151
+
52-
To switch accounts, logout from link:https://sso.redhat.com[https://sso.redhat.com] and run the command `$ rosa logout` before attempting to login again.
52+
To switch accounts, logout from link:https://sso.redhat.com[https://sso.redhat.com] and run the `rosa logout` command in your terminal before attempting to login again.
5353

5454
[id="rosa-login-sso-device_{context}"]
5555
=== login with a single sign-on device code
@@ -79,7 +79,7 @@ Running this command will redirect you to the Red Hat SSO login and provide a lo
7979

8080
|===
8181
+
82-
To switch accounts, logout from link:https://sso.redhat.com[https://sso.redhat.com] and run `rosa logout` before attempting to login again.
82+
To switch accounts, logout from link:https://sso.redhat.com[https://sso.redhat.com] and run the `rosa logout` command in your terminal before attempting to login again.
8383

8484

8585
[id="rosa-login-token_{context}"]
@@ -96,19 +96,21 @@ To use service accounts for automation purposes, see the link:https://console.re
9696
Red{nbsp}Hat recommends using service accounts for automation purposes.
9797
====
9898

99-
The ROSA CLI (`rosa`) looks for a token in the following priority order:
99+
// The ROSA CLI (`rosa`) looks for a token in the following priority order:
100100

101-
. Command-line arguments
102-
. The `ROSA_TOKEN` environment variable
103-
. The `rosa` configuration file
104-
. Interactively from a command-line prompt
101+
// . Command-line arguments
102+
// . The `ROSA_TOKEN` environment variable
103+
// . The `rosa` configuration file
104+
// . Interactively from a command-line prompt
105105

106+
. To log in to ROSA CLI (`rosa`) with a Red{nbsp}Hat offline token, run the following command:
107+
+
106108
.Syntax
107109
[source,terminal]
108110
----
109111
$ rosa login [arguments]
110112
----
111-
113+
+
112114
.Arguments
113115
[cols="30,70"]
114116
|===
@@ -132,7 +134,7 @@ $ rosa login [arguments]
132134
|--token-url
133135
|The OpenID token URL (string). Default: `\https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token`
134136
|===
135-
137+
+
136138
.Optional arguments inherited from parent commands
137139
[cols="30,70"]
138140
|===

0 commit comments

Comments
 (0)