Skip to main content

Module auth

Module auth 

Source
Expand description

Shared authentication logic for all protocol adapters.

This module is the single source of truth for API key validation and permission checking. Every adapter (HTTP, WebSocket, gRPC, MCP) must use these functions instead of rolling their own validation.

Enums§

AuthResult
Result of an authentication check.

Functions§

check_auth
Validate an API key against the configured keys with permission checking.
extract_bearer_from_value
Extract a bearer token from an “Authorization” header value string.
find_key_ct
Constant-time find over an api-key list (Issue 62).