authenticate_with_oauth2
Authenticate users with OAuth2 providers to enable secure access to PocketBase database operations. Handles authorization codes, PKCE verification, and redirect URLs for authentication flows.
Instructions
Authenticate a user with OAuth2
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | OAuth2 provider name (e.g., google, facebook, github) | |
| code | Yes | The authorization code returned from the OAuth2 provider | |
| codeVerifier | Yes | PKCE code verifier | |
| redirectUrl | Yes | The redirect URL used in the OAuth2 flow | |
| collection | No | Collection name (default: users) | users |
Implementation Reference
- src/index.ts:332-362 (registration)Registration of the 'authenticate_with_oauth2' tool in the ListToolsRequestSchema response. Includes the tool name, description, and input schema. Note: No corresponding handler implementation found in the CallToolRequestSchema switch statement.{ name: 'authenticate_with_oauth2', description: 'Authenticate a user with OAuth2', inputSchema: { type: 'object', properties: { provider: { type: 'string', description: 'OAuth2 provider name (e.g., google, facebook, github)', }, code: { type: 'string', description: 'The authorization code returned from the OAuth2 provider', }, codeVerifier: { type: 'string', description: 'PKCE code verifier', }, redirectUrl: { type: 'string', description: 'The redirect URL used in the OAuth2 flow', }, collection: { type: 'string', description: 'Collection name (default: users)', default: 'users' } }, required: ['provider', 'code', 'codeVerifier', 'redirectUrl'], }, },
- src/index.ts:335-361 (schema)Input schema for the 'authenticate_with_oauth2' tool, defining parameters for OAuth2 authentication including provider, code, codeVerifier, redirectUrl, and optional collection.inputSchema: { type: 'object', properties: { provider: { type: 'string', description: 'OAuth2 provider name (e.g., google, facebook, github)', }, code: { type: 'string', description: 'The authorization code returned from the OAuth2 provider', }, codeVerifier: { type: 'string', description: 'PKCE code verifier', }, redirectUrl: { type: 'string', description: 'The redirect URL used in the OAuth2 flow', }, collection: { type: 'string', description: 'Collection name (default: users)', default: 'users' } }, required: ['provider', 'code', 'codeVerifier', 'redirectUrl'], },