Versions in this module Expand all Collapse all v0 v0.9.3 Feb 9, 2026 Changes in this version + const ConfigType + type Authorizer struct + func NewAuthorizer(config ConfigOptions, serverName string) (*Authorizer, error) + func (a *Authorizer) AuthorizeWithJWTClaims(ctx context.Context, feature authorizers.MCPFeature, ...) (bool, error) + func (a *Authorizer) Close() error + type ClaimMapper interface + MapClaims func(claims map[string]any) map[string]any + type Client struct + func NewClient(config *ConnectionConfig) (*Client, error) + func (c *Client) Authorize(ctx context.Context, porc PORC, probe bool) (bool, error) + func (c *Client) Close() error + type Config struct + Options *ConfigOptions + Type string + Version string + type ConfigOptions struct + ClaimMapping string + Context *ContextConfig + HTTP *ConnectionConfig + func (c *ConfigOptions) CreateClaimMapper() (ClaimMapper, error) + func (c *ConfigOptions) GetClaimMapping() string + func (c *ConfigOptions) GetContextConfig() ContextConfig + func (c *ConfigOptions) Validate() error + type ConnectionConfig struct + InsecureSkipVerify bool + Timeout int + URL string + type Context map[string]interface + type ContextConfig struct + IncludeArgs bool + IncludeOperation bool + type DecisionResponse struct + Allow bool + type Factory struct + func (*Factory) CreateAuthorizer(rawConfig json.RawMessage, serverName string) (authorizers.Authorizer, error) + func (*Factory) ValidateConfig(rawConfig json.RawMessage) error + type MPEClaimMapper struct + func (*MPEClaimMapper) MapClaims(claims map[string]any) map[string]any + type PORC map[string]interface + type PORCBuilder struct + func NewPORCBuilder(serverID string, contextConfig ContextConfig, claimMapper ClaimMapper) *PORCBuilder + func (b *PORCBuilder) Build(feature authorizers.MCPFeature, operation authorizers.MCPOperation, ...) PORC + type Principal map[string]interface + type StandardClaimMapper struct + func (*StandardClaimMapper) MapClaims(claims map[string]any) map[string]any