Skip to content

gpsu provider

Manage the identity provider users sign in through

Manage the OpenID Connect provider a running gpsu signs users in through. gpsu keeps it in its database. Each change reaches sign-in at once. Only admins manage it. Local accounts sign in whether a provider is set or not.

A client secret is typed at a terminal or piped in. It never comes from a flag. gpsu encrypts it with the seal key. It can name a key in Vault instead.

The groups mapped to each role give a user’s role at their next sign-in. A role set for a user in gpsu wins over their groups.

Usage

gpsu provider [flags]
gpsu provider [command]

Examples

# Set the provider. Type the web client's secret when asked.
gpsu provider set --name Authentik --issuer https://auth.example/application/o/gpsu/ \
  --client-id gpsu-web --admins gpsu-admins --viewers gpsu-viewers

# Let the command line sign in through its own public client.
gpsu provider set --cli-client 'https://auth.example/application/o/gpsu-cli/#gpsu-cli'

# Show the provider and the redirect URL its web client must allow.
gpsu provider show

Commands

CommandDescription
gpsu provider removeRemove the identity provider and sign out its users
gpsu provider setSet the identity provider or change it
gpsu provider showShow the identity provider

Flags

FlagTypeDefaultDescription
--serverstringgpsu server URL such as https://gpsu.example ($GPSU_SERVER)