Skip to main content

final class atoti.SecurityConfig

The security config.
This feature is not part of the community edition: it needs to be unlocked.
This configures the parts of the security system that cannot be changed once the session is started.
See also: atoti.Session.security and atoti.tables.Tables.restrictions to continue configuring the security once the session is started.

basic_authentication : BasicAuthenticationConfig

Always enabled even if main_sso is not None to facilitate the authentication of service/technical users.

client_certificate : ClientCertificateConfig | None = None

cors : CorsConfig | None = None

https : HttpsConfig | None = None

jwt : JwtConfig

login : LoginConfig | None = None

main_sso : KerberosConfig | LdapConfig | OidcConfig | None = None

The config to delegate authentication to a Single Sign-On provider.
See also: xmla_sso

Versionadded

Added in version 0.9.19.

same_site : Literal[‘lax’, ‘none’, ‘strict’] = ‘lax’

The value to use for the SameSite attribute of the HTTP cookie sent by the session. See https://web.dev/samesite-cookies-explained for more information.
"none" requires the session to be served over HTTPS.

sso : KerberosConfig | LdapConfig | OidcConfig | None = None

The config to delegate authentication to a Single Sign-On provider.

Deprecated

Deprecated since version 0.9.19: Use main_sso instead:

xmla_sso : KerberosConfig | None = None

The config to secure the /xmla endpoint with a different provider than main_sso. Excel’s Analysis Services connector only supports Windows (Kerberos) and Basic authentication. A session whose main_sso is an OidcConfig can therefore not be queried from Excel with the credentials of its identity provider. Setting this attribute secures /xmla with Kerberos while every other endpoint keeps using main_sso. Its type must differ from the one of main_sso.
username_case_conversion has no effect when passed here: the conversion is applied session-wide, following the one declared on main_sso. An OidcConfig declares none, so a session pairing it with this attribute looks usernames up in individual_roles exactly as Kerberos returns them.

Versionadded

Added in version 0.9.19.