> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure OAuth identity providers

Use user-pool management permissions to configure external OAuth connections. The account default pool is used when the pool ID is omitted. Obtain endpoints and client settings from your provider, look up the connection ID with list or get, and submit only the fields you intend to update.

> [!WARNING]
>
> Supply the client secret from protected configuration. Disabling or deleting a connection affects users who rely on it to sign in.

## identity-provider create

| Option | Description | Default |
| - | - | - |
| `--user-pool-id <uid>` | user pool UID (defaults to the account's default user pool) | Account default pool |
| `-r, --region <region>` | cloud region (default: from provider/env) | — |
| `--json` | output JSON result instead of a human-readable summary | Off |
| `--file <path>` | JSON request body in camelCase. cannot be combined with field flags | — |
| `--name <name>` | identity provider connection name | — |
| `--oauth-provider <provider>` | OAuth provider identifier, e.g. feishu/lark/dingding | — |
| `--client-id <id>` | OAuth application client id | — |
| `--client-secret <secret>` | OAuth application client secret | — |
| `--authorization-endpoint <url>` | OAuth authorization endpoint | — |
| `--token-endpoint <url>` | OAuth token endpoint | — |
| `--user-endpoint <url>` | OAuth user-info endpoint | — |
| `--scope <scope>` | OAuth scope. repeat for multiple scopes | — |
| `--id-attribute <path>` | external user id attribute path, e.g. '\["data","union\_id"]' | — |
| `--use-pkce` | enable PKCE | Off |
| `--no-use-pkce` | disable PKCE | — |
| `--enabled` | enable the connection | Off |
| `--disabled` | disable the connection | Off |
| `--provider-options <json>` | OAuthProviderOptions JSON in camelCase | — |
| `--claims-propagation-config <json>` | OAuthClaimsPropagationConfig JSON in camelCase | — |
| `--attribute-mapping <json>` | OAuthAttributeMapping JSON in camelCase. repeat for multiple mappings | — |

```bash theme={null}
agentkit identity-provider create --name team-login --oauth-provider feishu --client-id "$CLIENT_ID" --client-secret "$CLIENT_SECRET" --authorization-endpoint "$AUTH_URL" --token-endpoint "$TOKEN_URL" --user-endpoint "$USER_URL" --id-attribute '["data","union_id"]'
```

## identity-provider list

| Option | Description | Default |
| - | - | - |
| `--user-pool-id <uid>` | user pool UID (defaults to the account's default user pool) | Account default pool |
| `-r, --region <region>` | cloud region (default: from provider/env) | — |
| `--json` | output JSON results instead of a table | Off |

```bash theme={null}
agentkit identity-provider list --json
```

## identity-provider get

| Option | Description | Default |
| - | - | - |
| `--user-pool-id <uid>` | user pool UID (defaults to the account's default user pool) | Account default pool |
| `--connection-id <id>` | OAuth provider connection id | — |
| `-r, --region <region>` | cloud region (default: from provider/env) | — |
| `--json` | output full JSON detail | Off |

```bash theme={null}
agentkit identity-provider get --connection-id "$CONNECTION_ID"
```

## identity-provider update

| Option | Description | Default |
| - | - | - |
| `--user-pool-id <uid>` | user pool UID (defaults to the account's default user pool) | Account default pool |
| `--connection-id <id>` | OAuth provider connection id | — |
| `--clear-scopes` | set scopes to an empty array | Off |
| `--clear-attribute-mappings` | set attribute mappings to an empty array | Off |
| `-r, --region <region>` | cloud region (default: from provider/env) | — |
| `--json` | output JSON summary | Off |
| `--file <path>` | JSON request body in camelCase. cannot be combined with field flags | — |
| `--name <name>` | identity provider connection name | — |
| `--oauth-provider <provider>` | OAuth provider identifier, e.g. feishu/lark/dingding | — |
| `--client-id <id>` | OAuth application client id | — |
| `--client-secret <secret>` | OAuth application client secret | — |
| `--authorization-endpoint <url>` | OAuth authorization endpoint | — |
| `--token-endpoint <url>` | OAuth token endpoint | — |
| `--user-endpoint <url>` | OAuth user-info endpoint | — |
| `--scope <scope>` | OAuth scope. repeat for multiple scopes | — |
| `--id-attribute <path>` | external user id attribute path, e.g. '\["data","union\_id"]' | — |
| `--use-pkce` | enable PKCE | Off |
| `--no-use-pkce` | disable PKCE | — |
| `--enabled` | enable the connection | Off |
| `--disabled` | disable the connection | Off |
| `--provider-options <json>` | OAuthProviderOptions JSON in camelCase | — |
| `--claims-propagation-config <json>` | OAuthClaimsPropagationConfig JSON in camelCase | — |
| `--attribute-mapping <json>` | OAuthAttributeMapping JSON in camelCase. repeat for multiple mappings | — |

```bash theme={null}
agentkit identity-provider update --connection-id "$CONNECTION_ID" --enabled
```

## identity-provider delete

| Option | Description | Default |
| - | - | - |
| `--user-pool-id <uid>` | user pool UID (defaults to the account's default user pool) | Account default pool |
| `--connection-id <id>` | OAuth provider connection id | — |
| `-r, --region <region>` | cloud region (default: from provider/env) | — |
| `--yes` | skip confirmation | Off |
| `--json` | output JSON summary | Off |

```bash theme={null}
agentkit identity-provider delete --connection-id "$CONNECTION_ID"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.