MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / AuthorizationCodeHandler

Struct AuthorizationCodeHandler

auth/authorization_code.go:109–114  ·  view source on GitHub ↗

AuthorizationCodeHandler is an implementation of [OAuthHandler] that uses the authorization code flow to obtain access tokens.

Source from the content-addressed store, hash-verified

107// AuthorizationCodeHandler is an implementation of [OAuthHandler] that uses
108// the authorization code flow to obtain access tokens.
109type AuthorizationCodeHandler struct {
110 config *AuthorizationCodeHandlerConfig
111
112 // tokenSource is the token source to use for authorization.
113 tokenSource oauth2.TokenSource
114}
115
116var _ OAuthHandler = (*AuthorizationCodeHandler)(nil)
117

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected