Skip to content

Commit 058698f

Browse files
committed
OSDOCS-6442 quick fix
1 parent 61f0f95 commit 058698f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/cli-logging-in-web.adoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Logging in to the CLI through the web browser runs a server on localhost with HT
2727
----
2828
$ oc login <cluster_url> --web <1>
2929
----
30-
<1> If needed, you can specify the callback port and server URL.
30+
<1> Optionally, you can specify the server URL and callback port. For example, `oc login <cluster_url> --web --callback-port 8280 localhost:8443`.
3131

3232
. The web browser opens automatically. If it does not, click the link in the command output. If you do not specify the {product-title} server `oc` tries to open the web console of the cluster specified in the current `oc` configuration file. If no `oc` configuration exists, `oc` prompts interactively for the server URL.
3333
+
@@ -38,13 +38,7 @@ $ oc login <cluster_url> --web <1>
3838
Opening login URL in the default browser: https://openshift.example.com
3939
Opening in existing browser session.
4040
----
41-
+
42-
.Example
4341

44-
[source,terminal]
45-
----
46-
$ oc login <https://api.your-openshift-server.com> --web --callback-port 8280 localhost:8443
47-
----
4842
. If more than one identity provider is available, select your choice from the options provided.
4943

5044
. Enter your username and password into the corresponding browser fields. After you are logged in, the browser displays the text `access token received successfully; please return to your terminal`.

0 commit comments

Comments
 (0)