Skip to main content
All Python modules · Import and compatibility guidance

Exports

ANONYMOUS_USER_ID

AnonymousAuthenticator

Development default that preserves the local single-user behavior.

AnonymousAuthenticator.authenticate

Return the built-in anonymous principal for every connection.

AuthPrincipal

A verified tenant/user identity supplied by a deployment authenticator.
Fields (— means no declared default):

AuthenticationError

A request did not satisfy the deployment authentication policy.

Authenticator

Resolve one HTTP or WebSocket connection to a verified principal.

Authenticator.authenticate

Return the authenticated principal for one incoming connection.

ConnectionContext

Framework-independent, read-only connection data for authentication.
Fields (— means no declared default):

install_authentication

Protect execution/session routes while leaving discovery public.

principal_for

Read the principal installed before a protected route executes.