> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# atoti.BasicAuthenticationConfig

### *final class* atoti.BasicAuthenticationConfig

The [basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) config.

It is the quickest way to set up security since it only requires defining [`credentials`](./atoti.security.basic_authentication_security.BasicAuthenticationSecurity.credentials#atoti.security.basic_authentication_security.BasicAuthenticationSecurity.credentials) and [`individual_roles`](./atoti.security.Security.individual_roles#atoti.security.Security.individual_roles).

<Callout icon="link">
  **See also**:
  [`atoti.BasicAuthentication`](./atoti.authentication.basic_authentication#atoti.BasicAuthentication).
</Callout>

#### realm *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#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).

When `None`, a machine-wide unique ID will be used.
