kxi auth

Authentication and authorization commands.

Usage:

text

Copy
kxi auth [OPTIONS] COMMAND [ARGS]...

Options:

text

Copy
  --help  Show this message and exit.

kxi auth get-admin-token

Get an admin access token for the Keycloak Admin API.

Usage:

text

Copy
kxi auth get-admin-token [OPTIONS]

Options:

text

Copy
  --username TEXT  Keycloak admin username  [required]
  --password TEXT  Keycloak admin password  [required]
  --help           Show this message and exit.

kxi auth login

Authenticate as a user or service account.

Usage:

text

Copy
kxi auth login [OPTIONS]

Options:

text

Copy
  --redirect-host TEXT     Web host to serve token request after login
  --redirect-port INTEGER  Port to serve token request after login
  --serviceaccount         Use service account login flow
  --force-code             Force manual verification code flow (non-local
                           browser)
  --help                   Show this message and exit.

kxi auth print-token

Get an access token for a serviceaccount id and secret.

Usage:

text

Copy
kxi auth print-token [OPTIONS]

Options:

text

Copy
  --help  Show this message and exit.

kxi auth roles

Get roles from an access token.

Usage

text

Copy
kxi auth roles [OPTIONS]

Options

text

Copy
  --help  Show this message and exit.

kxi auth status

Get the status of the current user logged in.

Usage

text

Copy
kxi auth status [OPTIONS]

Options

text

Copy
  --redirect-host TEXT     Web host to serve token request after login
  --redirect-port INTEGER  Port to serve token request after login
  --force-code             Force manual verification code flow (non-local
                           browser)
  --help                   Show this message and exit.