Skip to main content

Module oauth

Module oauth 

Source
Expand description

OAuth 2.1 Authorization Server for MCP.

Implements Authorization Code + PKCE flow so MCP clients like Claude Code can auto-authenticate via browser login.

Structs§

AuthorizationServerMetadata
AuthorizeForm
AuthorizeQuery
OAuthState
Shared state for OAuth endpoints.
ProtectedResourceMetadata
RegisterRequest
RegisterResponse
TokenRequest
TokenResponse

Functions§

oauth_authorize_get
oauth_authorize_post
oauth_register
oauth_token
Token endpoint accepts both application/json and application/x-www-form-urlencoded (OAuth 2.1 standard).
well_known_oauth_metadata
well_known_resource_metadata