Versions in this module Expand all Collapse all v0 v0.2.140 May 13, 2026 Changes in this version + func ContextWithScopes(ctx context.Context, scopes []string) context.Context + func ContextWithSessionID(ctx context.Context, sessionID string) context.Context + func ContextWithUserInfo(ctx context.Context, userInfo *providers.UserInfo) context.Context + func InterstitialAppName(ctx context.Context) string + func InterstitialRedirectURL(ctx context.Context) string + func ScopesFromContext(ctx context.Context) ([]string, bool) + func SessionIDFromContext(ctx context.Context) (string, bool) + func UserInfoFromContext(ctx context.Context) (*providers.UserInfo, bool) + type Handler struct + func New(server *server.Server, logger *slog.Logger) *Handler + func (h *Handler) RegisterAuthorizationServerMetadataRoutes(mux *http.ServeMux) + func (h *Handler) RegisterOAuthRoutes(mux *http.ServeMux, opts OAuthRoutesOptions) + func (h *Handler) RegisterProtectedResourceMetadataRoutes(mux *http.ServeMux, mcpPath string) + func (h *Handler) ServeAuthorization(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeAuthorizationServerMetadata(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeCallback(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeClientRegistration(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeJWKS(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeOpenIDConfiguration(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServePreflightRequest(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeProtectedResourceMetadata(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeToken(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeTokenIntrospection(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeTokenRevocation(w http.ResponseWriter, r *http.Request) + func (h *Handler) ServeUserInfo(w http.ResponseWriter, r *http.Request) + func (h *Handler) ValidateToken(next http.Handler) http.Handler + type OAuthRoutesOptions struct + IncludeMetadata bool + MCPPath string