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 | — |
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 |
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 |
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 | — |
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 |
agentkit identity-provider delete --connection-id "$CONNECTION_ID"