1- # Authentication
1+ ---
2+ title : " Authentication"
3+ sidebar :
4+ order : 2
5+ ---
26
37` datumctl ` uses OAuth 2.0 and OpenID Connect (OIDC) with the PKCE extension for
48secure authentication against Datum Cloud. This avoids the need to handle static
@@ -20,7 +24,7 @@ keyring.
2024
2125To authenticate with Datum Cloud, use the ` login ` command:
2226
23- ``` bash
27+ ```
2428datumctl auth login [--hostname <auth-hostname>] [-v]
2529```
2630
@@ -49,7 +53,7 @@ Once logged in, you typically need to configure `kubectl` to authenticate to
4953Datum Cloud Kubernetes clusters using your ` datumctl ` login session. Use the
5054` update-kubeconfig ` command:
5155
52- ``` bash
56+ ```
5357datumctl auth update-kubeconfig [--kubeconfig <path>] [--project <name>] [--organization <name>]
5458```
5559
@@ -75,7 +79,7 @@ automatically use your active `datumctl` login session for authentication.
7579
7680To see which users you have authenticated locally, use the ` list ` command:
7781
78- ``` bash
82+ ```
7983datumctl auth list
8084# Alias: datumctl auth ls
8185```
@@ -91,7 +95,7 @@ If you have logged in with multiple user accounts (visible via
9195` datumctl auth list ` ), you can switch which account is active using the
9296` switch ` command:
9397
94- ``` bash
98+ ```
9599datumctl auth switch <user-email>
96100```
97101
@@ -108,7 +112,7 @@ To remove stored credentials, use the `logout` command.
108112
109113** Log out a specific user:**
110114
111- ``` bash
115+ ```
112116datumctl auth logout <user-email>
113117```
114118
@@ -117,7 +121,7 @@ Replace `<user-email>` with the email address shown in the
117121
118122** Log out all users:**
119123
120- ``` bash
124+ ```
121125datumctl auth logout --all
122126```
123127
@@ -129,7 +133,7 @@ The `get-token` command retrieves the current access token for the *active*
129133authenticated user. This is primarily used internally by other tools (like
130134` kubectl ` ) but can be used directly if needed.
131135
132- ``` bash
136+ ```
133137datumctl auth get-token [-o <format>]
134138```
135139
0 commit comments