Commands for managing OAuth2 clients in your Tailor Platform application. OAuth2 clients enable authentication flows for web and mobile applications.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tailor-platform/sdk/llms.txt
Use this file to discover all available pages before exploring further.
oauth2client
Manage OAuth2 clients in your Tailor Platform application. Usage| Command | Description |
|---|---|
oauth2client list | List all OAuth2 clients in the application |
oauth2client get | Get OAuth2 client credentials (including client secret) |
list.
OAuth2 client commands require your application to have an auth configuration defined with
defineAuth() in your tailor.config.ts.oauth2client list
List all OAuth2 clients in the application. Usage| Option | Alias | Description | Required | Default |
|---|---|---|---|---|
--json | -j | Output as JSON | No | false |
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - |
--profile <PROFILE> | -p | Workspace profile | No | - |
--config <CONFIG> | -c | Path to config file | No | - |
The
list command does not return client secrets. Use the get command to retrieve the complete credentials including the client secret.oauth2client get
Get OAuth2 client credentials (including client secret). Usage| Argument | Description | Required |
|---|---|---|
name | OAuth2 client name | Yes |
| Option | Alias | Description | Required | Default |
|---|---|---|---|---|
--json | -j | Output as JSON | No | false |
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - |
--profile <PROFILE> | -p | Workspace profile | No | - |
--config <CONFIG> | -c | Path to config file | No | - |
Security WarningThe client secret is sensitive information. Store it securely and never commit it to version control. The secret is only returned by the
get command and should be treated like a password.- authorization_code: Standard OAuth2 authorization code flow for web applications
- refresh_token: Allows clients to obtain new access tokens using refresh tokens
- Configure the client in your auth configuration
- Use the
clientIdandclientSecretin your OAuth2 flow - Set up redirect URIs that match your application’s callback URLs
- Implement the authorization code flow in your application