Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication module

This module provides authentication services for the server:

  • mTLS (Mutual TLS) client certificate validation
  • JWT (JSON Web Token) authentication
  • API key authentication

Security model:

  • Secure by default (deny unless explicitly allowed)
  • Multiple authentication methods can be enabled simultaneously
  • Authentication results in a validated identity (Principal)

Structs§

Authenticator
Authentication service
Principal
Authenticated principal (user identity)

Enums§

AuthError
Authentication errors
AuthMethod
Authentication method used

Type Aliases§

AuthResult