@larksuiteoapi/lark-mcp
Version:
Feishu/Lark OpenAPI MCP
19 lines (18 loc) • 1.35 kB
TypeScript
import { Response } from 'express';
import { OAuthRegisteredClientsStore } from '@modelcontextprotocol/sdk/server/auth/clients.js';
import { OAuthClientInformationFull, OAuthTokens } from '@modelcontextprotocol/sdk/shared/auth.js';
import { AuthorizationParams, OAuthServerProvider } from '@modelcontextprotocol/sdk/server/auth/provider.js';
import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
import { LarkProxyOAuthServerProviderOptions } from './types';
export declare class LarkOIDC2OAuthServerProvider implements OAuthServerProvider {
private readonly _endpoints;
private readonly _options;
skipLocalPkceValidation: boolean;
constructor(options: LarkProxyOAuthServerProviderOptions);
get clientsStore(): OAuthRegisteredClientsStore;
authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise<void>;
challengeForAuthorizationCode(_client: OAuthClientInformationFull, _authorizationCode: string): Promise<string>;
exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, codeVerifier?: string, _redirectUri?: string): Promise<OAuthTokens>;
exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, _scopes?: string[]): Promise<OAuthTokens>;
verifyAccessToken(token: string): Promise<AuthInfo>;
}