Documentation
ReferenceCLICommandsoauth

oauth

Configure the OAuth Server of an environment and register the apps that sign users in through it.

Every command acts on one environment: --env, default main. The OAuth Server docs explain the flow these settings drive.

oauth settings

nulvless oauth settings

Shows the OAuth Server settings, including the issuer.


oauth settings update

nulvless oauth settings update [options]

Changes the settings you pass and keeps the rest.

nulvless oauth settings update --enable --consent-url https://id.acme.com
--enable

Turn the OAuth Server on.

--disable

Turn it off. /oauth/authorize answers 403.

--dynamic-clients

Let apps register themselves.

--no-dynamic-clients

Only clients registered here can sign in.

--authorization-path <path>

Path of your consent screen, such as /oauth/consent.

--consent-url <url>

Where your consent screen is hosted, if not on the site URL.


oauth clients list

nulvless oauth clients list

Lists the client apps.


oauth clients get

nulvless oauth clients get <client-id>

Shows one client app as JSON.


oauth clients create

nulvless oauth clients create <name> --type <type> --redirect-uri <uri> [options]

Registers a client app. A confidential app gets a secret, printed once.

nulvless oauth clients create "Acme Analytics" --type confidential \
  --redirect-uri https://acme.com/callback
<name>Required

Name people see on the consent screen.

--type <type>public | confidentialRequired

public for browser and mobile apps that cannot keep a secret, confidential for servers.

--redirect-uri <uri>Required

Allowed redirect URI, matched exactly. Repeat it for more.

--client-uri <url>

Home page shown on the consent screen.

--logo-uri <url>

Logo shown on the consent screen.

--default-max-age <seconds>

Ask users to sign in again when their last sign-in is older than this, unless the app sends max_age itself. The default_max_age of OpenID Connect Dynamic Client Registration 1.0 §2.

--no-refresh-tokens

Do not issue refresh tokens to this app.


oauth clients update

nulvless oauth clients update <client-id> [options]

Changes what you pass and keeps the rest. Takes the same options as create except --type, plus:

--name <name>

Name people see on the consent screen.

--no-default-max-age

Stop asking users to sign in again on a schedule.

nulvless oauth clients update <client-id> --default-max-age 7200

oauth clients rotate-secret

nulvless oauth clients rotate-secret <client-id>

Issues a new secret for a confidential app and prints it once. The old one stops working immediately.


oauth clients delete

nulvless oauth clients delete <client-id>

Deletes a client app. Its tokens stop working, and its users must authorize it again if it is registered again.

On this page