auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTVerifier

type JWTVerifier struct {
	// contains filtered or unexported fields
}

func NewJWTVerifier

func NewJWTVerifier(cfg VerifierConfig) (*JWTVerifier, error)

func (*JWTVerifier) Verify

func (v *JWTVerifier) Verify(ctx context.Context, token string, req *http.Request) (*mcpauth.TokenInfo, error)

type VerifierConfig

type VerifierConfig struct {
	IssuerURL      string
	Audience       string
	AllowedEmail   string
	AllowedSubject string
	JWKSURL        string
	HTTPClient     *http.Client
}

Jump to

Keyboard shortcuts

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