auth

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(ctx context.Context, env map[string]string, auth Auth, dsn, healthzPath string, next http.Handler) (http.Handler, error)

Types

type Auth

type Auth struct {
	OAuthClientID        string   `usage:"OAuth client ID"`
	OAuthClientSecret    string   `usage:"OAuth client secret"`
	OAuthAuthorizeURL    string   `usage:"OAuth authorize URL for third-party OAuth provider"`
	OAuthTokenURL        string   `usage:"OAuth token URL for third-party OAuth provider"`
	OAuthJWKSURL         string   `usage:"OAuth JWKS URL to trust in addition to tokens"`
	OAuthScopes          []string `usage:"OAuth scopes to request during OAuth flow"`
	TrustedIssuer        string   `usage:"Trusted issuer for JWT tokens"`
	JWKS                 string   `usage:"JWKS public key for JWT tokens"`
	TrustedAudiences     []string `usage:"Trusted audiences for JWT tokens"`
	EncryptionKey        string   `usage:"Encryption key for storing sensitive data"`
	APIKeyAuthWebhookURL string   `usage:"URL for API key authentication webhook"`
	MCPServerID          string   `usage:"ID of the MCP server to validate API keys for"`
}

Jump to

Keyboard shortcuts

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