Hi everyone,
I just started using vaultwarden as a docker container behind a caddy reverse proxy with Authentik for SSO. All these services run on my server in my home network and my dns server forwards to the local IP.
I used this howto Integrate with Vaultwarden | authentik and it works!
My problem: I would like to avoid typing in my email address two times.
My current flow with this setup is:
- Open Vaultwarden website
- Enter email address, click “Use Single sign on”
- Redirect to Authentik, log in (or pass through if session exists)
- Back to web vault, enter master password
- Vault unlocked
My desired flow would be:
- Open Vaultwarden website
- Direct redirect to Authentik
- Back to web vault, enter master password
- Vault unlocked
Vaultwarden is configured as follows with my .env file:
DOMAIN=https://vw.subdomain.mydomain.de
SSO_ENABLED=true
SSO_AUTHORITY=https://authentik.subdomain.mydomain.de/application/o/vaultwarden/
SSO_CLIENT_ID=**redacted**
SSO_CLIENT_SECRET=**redacted**
SSO_SCOPES=email profile offline_access
SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION=false
SSO_CLIENT_CACHE_EXPIRATION=0
SSO_ONLY=true
SSO_SIGNUPS_MATCH_EMAIL=true
SIGNUPS_ALLOWED=false
INVITATIONS_ALLOWED=false
ADMIN_TOKEN=**redacted**
SMTP_ENABLED=false
WEB_VAULT_ENABLED=true
LOG_LEVEL=info
EXTENDED_LOGGING=true
HTTP_REQUEST_BLOCK_NON_GLOBAL_IPS=false
Side note: You can actually put in a different email address than the one you use in the second step (authentik), which will lead to you being authenticated over authentik as userA and displayed inside vaultwarden as userB
I would appreciate any advice.
kind regards,
Johannes


