authenticate_with_oauth2
Enable user authentication via OAuth2 providers such as Google, Facebook, or GitHub by processing authorization codes, PKCE verifiers, and redirect URLs for secure login integration.
Instructions
Authenticate a user with OAuth2
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The authorization code returned from the OAuth2 provider | |
| codeVerifier | Yes | PKCE code verifier | |
| collection | No | Collection name (default: users) | users |
| provider | Yes | OAuth2 provider name (e.g., google, facebook, github) | |
| redirectUrl | Yes | The redirect URL used in the OAuth2 flow |
Implementation Reference
- src/index.ts:332-362 (registration)Registration of the 'authenticate_with_oauth2' tool in the ListTools response, including its input schema definition. 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.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'], },