import { ConfigService } from "@nestjs/config"; import { OAuthRegisterDto } from "../dtos/oauth.register.dto"; import { OAuthClientService } from "../services/oauth.client.service"; /** * OAuth Dynamic Client Registration Controller * * Implements RFC 7591 Dynamic Client Registration. * Allows MCP clients (claude.ai connectors, Claude Desktop, ChatGPT) * to self-register before starting the authorization code flow. * * The response is the RFC 7591 client information wire format * (plain JSON, not JSON:API) — same convention as /oauth/token. */ export declare class OAuthRegistrationController { private readonly clientService; private readonly configService; constructor(clientService: OAuthClientService, configService: ConfigService); /** * Client Registration Endpoint (RFC 7591 Section 3) * * POST /oauth/register * * Public endpoint (no guard) — required by MCP clients, which * register before any user credentials exist. */ register(dto: OAuthRegisterDto): Promise<{ client_id: string; client_secret?: string; client_id_issued_at: number; redirect_uris: string[]; grant_types: string[]; token_endpoint_auth_method: string; client_name: string; }>; } //# sourceMappingURL=oauth.registration.controller.d.ts.map