config

package
v2.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package config holds the configuration types an MCP resource server embeds into its own configuration struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthInfo

type OAuthInfo struct {
	// Resource is this RS's resource identifier (RFC 8707 aud / RFC 9728 resource).
	Resource string
	// AuthorizationServer is the AS issuer URL advertised in discovery.
	AuthorizationServer string
	// Scope is advertised in the WWW-Authenticate challenge (may be empty).
	Scope string
}

OAuthInfo holds an MCP service's OAuth 2.1 Resource Server settings. These only feed RFC 9728 discovery, the WWW-Authenticate challenge, and the aud forwarded to proxy-auth — the service never verifies tokens locally.

Jump to

Keyboard shortcuts

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