OAuth2

Marketplace URL: OAuth2

The oauth2 commands add-client and remove-client, manage OAuth2 clients.

Use these commands to configure the OAuth2 app:

oauth2
  oauth2:add-client     Adds an OAuth2 client
  oauth2:remove-client  Removes an OAuth2 client

Add a Client

Usage

oauth2:add-client <name> <client-id> <client-secret> <redirect-url> [<allow-sub-domains> [<trusted> [<force-trust>]]]

Arguments

name

Name of the client - will be displayed in the authorization page to the user

client-id

Identifier of the client - used by the client during the implicit and authorization code flow

client-secret

Secret of the client - used by the client during the authorization code flow

redirect-url

Redirect URL - used in the OAuth flows to post back tokens and authorization codes to the client

allow-sub-domains

Defines if the redirect url is allowed to use sub domains. Enter true or false [default: "false"]

trusted

Defines if the client is trusted. Enter true or false [default: "false"]

force-trust

Trust the client even if the redirect-url is localhost. [default: "false"]

Remove a Client

Usage

oauth2:remove-client <client-id>

Arguments

client-id

Identifier of the client - used by the client during the implicit and authorization code flow