atoti.config.authentication.kerberos module

class atoti.config.authentication.kerberos.KerberosConfig(service_principal, keytab=None, krb5_config=None)

The Kerberos configuration.

Atoti+ can be connected to Kerberos authentication network as a service.

Example

>>> config = {
...     "authentication": {
...         "kerberos": {
...             "service_principal": "HTTP/localhost",
...             "keytab": "config/example.keytab",
...             "krb5_config": "config/example.krb5",
...         }
...     }
... }
keytab: Optional[Union[pathlib.Path, str]] = None

The path to the keytab file to use.

krb5_config: Optional[Union[pathlib.Path, str]] = None

The path to the Kerberos config file.

Defaults to the OS-specific default location.

service_principal: str

The principal that the atoti application should use.