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

> atoti.BasicAuthenticationConfig(\
>
>     \*,\
>
>     *credentials\_cache*: [CredentialsCacheConfig](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.config.security.CredentialsCacheConfig.md#atoti.CredentialsCacheConfig) = `CredentialsCacheConfig()`,\
>
>     *realm*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
> )

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

**See also**:
[`atoti.BasicAuthentication`](./atoti.authentication.BasicAuthentication#atoti.BasicAuthentication).

### Attributes

#### *credentials\_cache*

The config of the cache of the credentials accepted when checking a password.

> [!NOTE]
>
> Added in version 6.2.2.

#### *realm*

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.
