You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/stackit_auth_login.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Logs in to the STACKIT CLI
5
5
### Synopsis
6
6
7
7
Logs in to the STACKIT CLI using a user account.
8
-
The authentication is done via a web-based authorization flow, where the command will open a browser window in which you can login to your STACKIT account.
8
+
By default, the authentication uses a web-based authorization flow and opens a browser window where you can login to your STACKIT account. You can alternatively use the OAuth 2.0 device flow for environments where receiving a local callback is not possible.
9
9
10
10
```
11
11
stackit auth login [flags]
@@ -16,6 +16,9 @@ stackit auth login [flags]
16
16
```
17
17
Login to the STACKIT CLI. This command will open a browser window where you can login to your STACKIT account
18
18
$ stackit auth login
19
+
20
+
Login to the STACKIT CLI using OAuth 2.0 device flow
21
+
$ stackit auth login --use-device-flow
19
22
```
20
23
21
24
### Options
@@ -24,6 +27,7 @@ stackit auth login [flags]
24
27
-h, --help Help for "stackit auth login"
25
28
--port int The port on which the callback server will listen to. By default, it tries to bind a port between 8000 and 8020.
26
29
When a value is specified, it will only try to use the specified port. Valid values are within the range of 8000 to 8020.
30
+
--use-device-flow Use OAuth 2.0 device authorization grant (device flow) instead of the browser callback flow.
"Logs in to the STACKIT CLI using a user account.",
30
-
"The authentication is done via a web-based authorization flow, where the command will open a browser window in which you can login to your STACKIT account."),
32
+
"By default, the authentication uses a web-based authorization flow and opens a browser window where you can login to your STACKIT account. You can alternatively use the OAuth 2.0 device flow for environments where receiving a local callback is not possible."),
31
33
Args: args.NoArgs,
32
34
Example: examples.Build(
33
35
examples.NewExample(
34
36
`Login to the STACKIT CLI. This command will open a browser window where you can login to your STACKIT account`,
35
37
"$ stackit auth login"),
38
+
examples.NewExample(
39
+
`Login to the STACKIT CLI using OAuth 2.0 device flow`,
0 commit comments