Auth Resource Commands
Commands for managing Auth service resources (auth connections, machine users, and OAuth2 clients).
authconnection
Manage auth connections.
Usage
tailor-sdk authconnection [command]Commands
| Command | Description |
|---|---|
authconnection authorize | Authorize an auth connection via OAuth2 flow. |
authconnection list | List all auth connections. |
authconnection revoke | Revoke an auth connection. |
See Global Options for options available to all commands.
authconnection authorize
Authorize an auth connection via OAuth2 flow.
Usage
tailor-sdk authconnection authorize [options]Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--name <NAME> | -n | Auth connection name | Yes | - | - |
--scopes <SCOPES> | - | OAuth2 scopes to request (comma-separated) | No | "openid,profile,email" | - |
--port <PORT> | - | Local callback server port | No | 8080 | - |
--no-browser | - | Don't open browser automatically | No | false | - |
See Global Options for options available to all commands.
authconnection list
List all auth connections.
Usage
tailor-sdk authconnection list [options]Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
See Global Options for options available to all commands.
authconnection revoke
Revoke an auth connection.
Usage
tailor-sdk authconnection revoke [options]Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--name <NAME> | -n | Auth connection name | Yes | - | - |
--yes | -y | Skip confirmation prompts | No | false | - |
See Global Options for options available to all commands.
machineuser
Manage machine users in your Tailor Platform application.
Usage
tailor-sdk machineuser [command]Commands
| Command | Description |
|---|---|
machineuser list | List all machine users in the application. |
machineuser token | Get an access token for a machine user. |
See Global Options for options available to all commands.
machineuser list
List all machine users in the application.
Usage
tailor-sdk machineuser list [options]Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--config <CONFIG> | -c | Path to SDK config file | No | "tailor.config.ts" | TAILOR_PLATFORM_SDK_CONFIG_PATH |
See Global Options for options available to all commands.
machineuser token
Get an access token for a machine user.
Usage
tailor-sdk machineuser token [options] <name>Arguments
| Argument | Description | Required |
|---|---|---|
name | Machine user name | Yes |
Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--config <CONFIG> | -c | Path to SDK config file | No | "tailor.config.ts" | TAILOR_PLATFORM_SDK_CONFIG_PATH |
See Global Options for options available to all commands.
oauth2client
Manage OAuth2 clients in your Tailor Platform application.
Usage
tailor-sdk oauth2client [command]Commands
| Command | Description |
|---|---|
oauth2client list | List all OAuth2 clients in the application. |
oauth2client get | Get OAuth2 client credentials (including client secret). |
See Global Options for options available to all commands.
oauth2client list
List all OAuth2 clients in the application.
Usage
tailor-sdk oauth2client list [options]Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--config <CONFIG> | -c | Path to SDK config file | No | "tailor.config.ts" | TAILOR_PLATFORM_SDK_CONFIG_PATH |
See Global Options for options available to all commands.
oauth2client get
Get OAuth2 client credentials (including client secret).
Usage
tailor-sdk oauth2client get [options] <name>Arguments
| Argument | Description | Required |
|---|---|---|
name | OAuth2 client name | Yes |
Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--config <CONFIG> | -c | Path to SDK config file | No | "tailor.config.ts" | TAILOR_PLATFORM_SDK_CONFIG_PATH |
See Global Options for options available to all commands.
Output:
Returns a list of OAuth2 clients with the following fields:
name- Client namedescription- Client descriptionclientId- OAuth2 client IDgrantTypes- Supported grant types (e.g.,authorization_code,refresh_token)redirectUris- Registered redirect URIscreatedAt- Creation timestamp
Output:
Returns the OAuth2 client credentials with the following fields:
name- Client namedescription- Client descriptionclientId- OAuth2 client IDclientSecret- OAuth2 client secretgrantTypes- Supported grant typesredirectUris- Registered redirect URIscreatedAt- Creation timestamp