Skip to main content

ory perform client-credentials

ory perform client-credentials

Perform the OAuth2 Client Credentials Flow

Synopsis

Performs the OAuth 2.0 Client Credentials Flow. Useful to exchange a client_id and client_secret for an access_token. using the CLI.

ory perform client-credentials [flags]

Examples

{{ .CommandPath }} --client-id ... --client-secret

Options

      --audience strings       Request a specific OAuth 2.0 Access Token Audience.
--client-id string Use the provided OAuth 2.0 Client ID, defaults to environment variable OAUTH2_CLIENT_ID.
--client-secret string Use the provided OAuth 2.0 Client Secret, defaults to environment variable OAUTH2_CLIENT_SECRET.
--format string Set the output format. One of table, json, yaml, and json-pretty. (default "default")
-h, --help help for client-credentials
--project string The project to use
--scope strings OAuth2 scope to request.

Options inherited from parent commands

  -c, --config string   Path to the Ory Cloud configuration file.
-q, --quiet Be quiet with output printing.
-y, --yes Confirm all dialogs with yes.

SEE ALSO