> ## 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.

# BasicAuthenticationConfig

<span id="atoti.BasicAuthenticationConfig" />

> atoti.BasicAuthenticationConfig(<br />
>     \*,<br />
>     *realm*: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
> )

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.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.BasicAuthentication#atoti.BasicAuthentication).
</Callout>

### Attributes

<h4 id="atoti.BasicAuthenticationConfig.realm">
  *realm*
</h4>

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.
