server.web.auth

Attributes

log

_CONFIG

config

oauth

_oauth_setup

oauth_instance

Functions

is_auth_enabled(→ bool)

Check if authentication is enabled.

setup_oauth(...)

Setup OAuth only if authentication is enabled.

Module Contents

server.web.auth.log[source]
server.web.auth._CONFIG[source]
server.web.auth.config[source]
server.web.auth.oauth[source]
server.web.auth._oauth_setup = False[source]
server.web.auth.is_auth_enabled() bool[source]

Check if authentication is enabled.

server.web.auth.setup_oauth() authlib.integrations.starlette_client.OAuth | None[source]

Setup OAuth only if authentication is enabled.

server.web.auth.oauth_instance = None[source]