Skip to main content

Module auth

Module auth 

Source

Structs§

AllowAllAuthPlugin
Development-only plugin that allows all connections
AuthContext
Auth context extracted from a verified token
AuthDeny
Enhanced authentication denial with structured error information
AuthErrorDetails
Structured error details for machine-readable error handling
AuthMetrics
Authentication metrics for observability
AuthMetricsSnapshot
Serializable snapshot of auth metrics
ChannelAuditLogger
Channel-based audit logger for async event streaming
ConnectionAuthRequest
ErrorResponse
JSON-serializable error response for clients
MultiKeyVerifier
Multi-key verifier supporting graceful key rotation
MultiKeyVerifierBuilder
Builder for constructing a MultiKeyVerifier with rotation support
NoOpAuditLogger
No-op audit logger for development/testing
RotationKey
A key with its metadata for rotation
SecurityAuditEvent
Security audit event
SignedSessionAuthPlugin
StaticTokenAuthPlugin

Enums§

AuditEvent
Security audit event types
AuditSeverity
Security audit event severity levels
AuthDecision
Authentication decision with optional auth context
AuthErrorCode
Machine-readable error codes for authentication failures
RetryPolicy
Retry policy for authentication errors

Traits§

AuthMetricsCollector
Trait for collecting auth metrics
SecurityAuditLogger
Trait for security audit loggers
WebSocketAuthPlugin

Functions§

auth_failure_event
Helper function to create an auth failure audit event
auth_success_event
Helper function to create an auth success audit event
rate_limit_event
Helper function to create a rate limit exceeded audit event