Skip to main content

Module auth

Module auth 

Source
Expand description

Slim OSS auth module. The full closed auth/ subtree (JWT, cookie, API key, register/reset/verify, password hashing, mailer, superuser-only extractor, AuthContext, etc.) lives in the closed cognee-http-cloud crate alongside the auth router family. OSS keeps only the in-extractor types and the default-user fallback.

Structs§

AuthenticatedUser
OptionalAuthenticatedUser
Same resolution as AuthenticatedUser but never errors — returns None when authentication fails (instead of 401).

Enums§

AuthMethod

Functions§

default_user_from_state
Synthetic default user used when no auth resolver is wired and require_authentication=false.