mcp

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth401Interceptor

func Auth401Interceptor(resourceMetadataURL string, scopes []string) middleware.Middleware

Auth401Interceptor creates a middleware that adds WWW-Authenticate header on 401 responses. resourceMetadataURL is the URL to the OAuth protected resource metadata endpoint. scopes is the space-delimited scope list advertised in the challenge so MCP clients pick the resource's required scopes (MCP 2025-06-18 §Authorization scope selection) instead of falling back to the authorization server's scopes_supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL