atoti.BasicAuthenticationConfig#

class atoti.BasicAuthenticationConfig#

The basic authentication configuration.

It is the most basic way to set up security since it only requires defining credentials and individual_roles.

realm: str | None = None#

The realm describing the protected area.

Different realms can be used to isolate sessions running on the same domain (regardless of the port). The realm will also be displayed by the browser when prompting for credentials. Defaults to some machine-wide unique ID.

Example

>>> basic_auth_config = tt.BasicAuthenticationConfig(realm="Example")