This guide combines FreeIPA password and TOTP authentication with an additional Authelia WebAuthn step. Open WebUI is the relying-party example, with separate admission and administrator groups.
Scope and evidence: The existing integration's YubiKey and Vaultwarden login paths were operator-tested. A fresh combined installer-based reproduction remains unverified. Examples target Authelia 4.39.28, installer 0.2.1, and Open WebUI v0.13.5; they are excerpts, not a complete unattended deployment.
Here, 3FA is shorthand for the required password + TOTP + WebAuthn sequence, not a certification of three independent factor categories. TOTP and WebAuthn may both involve possession; authenticator user verification and credential storage affect the actual assurance level.
| Setting | Example |
|---|---|
| Authelia issuer | https://sso.example.com |
| Open WebUI | https://chat.example.com |
| OIDC client ID | open-webui |
| Callback | https://chat.example.com/oauth/oidc/callback |
| Application admission group | openwebui |
| Administrator group | sysadmins |
Open WebUI
|
v
Authelia OIDC authorization
|
v
FreeIPA username + password AND FreeIPA TOTP
|
| AND: this authentication must succeed first
v
Authelia WebAuthn
|
+---- YubiKey ---------------------------+
| |
+---- OR Vaultwarden-stored passkey -----+
|
v
Authelia application-admission policy
|
v
OIDC callback -> Open WebUI identity and role
FreeIPA must enforce password and TOTP on the actual LDAP path used by Authelia. Merely enrolling an OTP token does not demonstrate that password-only authentication is rejected. Test this before relying on the sequence.
Authelia treats successful directory authentication as its first step. WebAuthn is an additional step; its credential is registered with Authelia, not imported from FreeIPA. Authelia's one_factor and two_factor labels describe its authentication levels, not the underlying number of FreeIPA checks.
| Group membership | Intended result |
|---|---|
openwebui |
Application user |
openwebui and sysadmins |
Application administrator |
sysadmins only |
Denied by Authelia |
| Neither | Denied by Authelia |
Authelia controls admission; Open WebUI assigns the application role. Administrators therefore need both groups.
Use the Authelia installer 0.2.1 and review the Open WebUI Kubernetes repository.
Provide trusted HTTPS for both endpoints, server-side CA trust from Open WebUI to Authelia, TLS-protected LDAP, and working SMTP for enrollment and identity verification. Preserve application data together with the matching encryption and signing keys. Keep an independent administrative recovery path and an established administrative session during authentication changes.
Store private LDAP/SMTP inputs outside Git with restricted permissions. Do not include passwords, OTP seeds, cookies, tokens or private keys in diagnostic output. An agent can review schemas and sanitized results without displaying authentication material.
For rehearsal, use fresh namespaces and synthetic identities. LDAP/SMTP fixtures belong outside Authelia's exclusive installer-owned namespace. Confirm storage capacity, namespace ownership and PVC reclaim behavior before deployment.
Open WebUI installer boundary: the configurable OIDC rewrite examined during this work is experimental and unpublished. Its commands are not a released installation interface. The application settings below must be integrated into reviewed manifests or an otherwise supported deployment workflow.
The following is an installer-input JSON excerpt, not upstream YAML or a complete private configuration. Merge it without discarding existing clients and policies.
{
"session_idle": "2h",
"session_max": "2h",
"oidc_policies": {
"openwebui_users": {
"group": "openwebui",
"policy": "two_factor"
}
},
"oidc_clients": [
{
"client_id": "open-webui",
"client_name": "Open WebUI",
"redirect_uris": [
"https://chat.example.com/oauth/oidc/callback"
],
"authorization_policy": "openwebui_users",
"require_pkce": true
}
]
}
The renderer creates a default-deny policy permitting group:openwebui. Generated upstream client properties include:
# Excerpt of generated Authelia client configuration
public: true
token_endpoint_auth_method: none
grant_types:
- authorization_code
response_types:
- code
require_pkce: true
pkce_challenge_method: S256
This public client needs no client secret. Register the exact callback; do not copy a different application's callback path.
From the reviewed installer checkout, prepare and render the protected input:
./configure.sh --from-answers /secure/authelia.json --no-install
./install.sh --config /secure/authelia.json --render-only
These operations create/render local configuration; they do not prove deployment or authentication. Review the rendered resources and the private source of truth before an approved rollout. Keep a backup of the preceding configuration and a recovery path independent of SSO. A configuration rollback cannot restore login sessions lost during a restart.
two_factor does not mean WebAuthn-only. Other enabled Authelia second factors can satisfy it.
For the illustrated sequence, disable alternative Authelia second-factor methods through a reviewed, persistent configuration change. Relevant upstream settings are:
# Upstream Authelia YAML, not installer-input JSON keys
totp:
disable: true
webauthn:
enable_passkey_login: false
Leave Duo unconfigured. Disabling Authelia TOTP does not disable FreeIPA TOTP.
Installer 0.2.1 explicitly disables passkey-first login while preserving WebAuthn as an additional factor. Its examined input interface does not expose totp.disable. WebAuthn-only enforcement therefore still requires a reviewed implementation change that survives reruns. Do not invent a JSON option or depend on an edit to generated output that the next install overwrites.
Verify enrollment, settings and recovery separately. An OIDC client's two_factor policy does not prove equivalent protection of every Authelia portal action.
These are application environment settings, not Authelia installer inputs:
WEBUI_URL=https://chat.example.com
OPENID_PROVIDER_URL=https://sso.example.com/.well-known/openid-configuration
OPENID_REDIRECT_URI=https://chat.example.com/oauth/oidc/callback
OAUTH_CLIENT_ID=open-webui
OAUTH_PROVIDER_NAME=Authelia
OAUTH_SCOPES=openid email profile groups
OAUTH_TOKEN_ENDPOINT_AUTH_METHOD=none
OAUTH_CODE_CHALLENGE_METHOD=S256
ENABLE_OAUTH_SIGNUP=true
ENABLE_OAUTH_PERSISTENT_CONFIG=false
OAUTH_MERGE_ACCOUNTS_BY_EMAIL=false
ENABLE_OAUTH_ROLE_MANAGEMENT=true
OAUTH_ROLES_CLAIM=groups
OAUTH_ALLOWED_ROLES=openwebui
OAUTH_ADMIN_ROLES=sysadmins
DEFAULT_USER_ROLE=pending
Enable OAuth signup only when automatic SSO account creation is intended. Keep automatic email-based account merging disabled unless separately reviewed.
For SSO-only browser access, also review:
ENABLE_PASSWORD_AUTH=false
ENABLE_LOGIN_FORM=false
ENABLE_SIGNUP=false
JWT_EXPIRES_IN=12h
Verify effective values: persisted Open WebUI configuration can override relevant environment-derived defaults. Hiding the login form alone does not disable password authentication.
In Open WebUI v0.13.5, the first account becomes administrator, and the sole existing user can be assigned administrator on login. Missing role claims can preserve an existing role in the examined browser-login path. The mapping variables alone are therefore not a complete authorization boundary.
Bootstrap with an intended administrator, then test separate ordinary/admin identities, missing claims, removed memberships and existing administrators. Retain Authelia's admission restriction.
PIN, touch and biometric prompts depend on the authenticator and user-verification policy. Configure and test user verification explicitly when mandatory. A Vaultwarden passkey is not hardware-bound in the same way as a YubiKey; keep vault unlock and recovery independent of the protected login.
Enrollment email verification does not replace the required regular login checks.
Installer 0.2.1 renders:
# Upstream Authelia YAML excerpt
session:
inactivity: 2h
expiration: 2h
remember_me: -1
This is configuration hardening, not a verified immutable two-hour deadline from full authentication. In the inspected runtime, session save/regeneration paths can move the expiry reference. Reducing the configured duration does not establish the strict property by itself.
The separate application requirement is at most twelve hours from creation of each session, without silent renewal moving its deadline.
| Event | Strict policy objective |
|---|---|
| Full authentication at 08:00 | SSO reuse ends at 10:00 |
| Application A session created at 08:00 | Ends at 20:00 |
| Application B session created at 09:30 | Ends at 21:30 |
These are objectives, not an end-to-end guarantee of release 0.2.1. If a separate full authentication occurred at 19:00, a new authorization at 20:00 may reuse that fresh SSO session; it must not revive the old expired application session.
Authelia expiration/restart does not automatically revoke application sessions. Local application logout need not end the Authelia session. Publishing a release does not update a running service.
Evaluate Open WebUI's browser JWT separately from renewable native-client sessions. A twelve-hour idle timeout on a renewable session is not an absolute twelve-hour deadline. Qualify HTTP/API expiry and relevant long-lived connections rather than relying solely on browser cookie deletion.
| Test | Required result |
|---|---|
| FreeIPA password + TOTP, then YubiKey | Successful login |
| FreeIPA password + TOTP, then Vaultwarden passkey | Successful login |
| Password only, incorrect OTP, or omitted WebAuthn | Rejected |
Ordinary openwebui member |
User role after controlled bootstrap |
| Member of both groups | Administrator role |
sysadmins only or neither group |
Denied by Authelia |
| Missing claims or removed membership | No unintended retained privileges |
| Incorrect callback or missing/invalid PKCE | Rejected |
| Local password fallback | Disabled for SSO-only access |
| Logout, re-login, idle/active expiry and old-session replay | Match documented behavior |
| Enrollment and recovery | No unintended bypass |
Record versions and sanitized observations, not authentication material.
Existing evidence includes operator-confirmed YubiKey/Vaultwarden logins, source/configuration inspection and synthetic LDAP/SMTP fixture tests. It does not establish a fresh combined deployment, WebAuthn-only enforcement through the released installer, an immutable two-hour SSO deadline, or universal twelve-hour expiry across all access mechanisms.