atoti.KerberosConfig#

final class atoti.KerberosConfig#

The config to delegate authentication to Kerberos.

The user’s roles can be defined using atoti.security.Security.kerberos and individual_roles.

Example

>>> from pathlib import Path
>>> config = tt.KerberosConfig(
...     service_principal="HTTP/localhost",
...     keytab=Path("config") / "example.keytab",
...     krb5_config=Path("config") / "example.krb5",
... )
keytab: Path | None = None#

The path to the keytab file to use.

krb5_config: Path | None = None#

The path to the Kerberos config file.

Defaults to the OS-specific default location.

service_principal: str#

The principal that the session will use.