atoti.KerberosConfig(The config to delegate authentication to Kerberos. The user’s roles can be defined using
*,
username_case_conversion: ‘upper’ | ‘lower’,
service_principal: str,
keytab: Path | None =None,
krb5_config: Path | None =None,
)
atoti.security.Security.kerberos and individual_roles.
Attributes
service_principal
The principal that the session will use.keytab
The path to the keytab file to use.username_case_conversion
The case conversion to apply to the username. This authentication provider is generally case insensitive: the same user Jane could log in with the usernames"jane", "Jane", "JANE", etc.
This attribute allows reducing all the possible cases to a single one to be compatible with individual_roles and other case sensitive mappings.
For instance, if session.security.individual_roles == {"jane": {"ROLE_USER"}}, username_case_conversion should be set to "lower".