Single sign-on for your applications with authentik
Updated 11/29/2026
authentik is an open-source identity provider: your colleagues have one account with two-factor authentication, and your applications (Nextcloud, Grafana, GitLab, Immich and many more) use it over OpenID Connect, SAML or LDAP. When someone leaves the company, you close one account. This guide starts from authentik installed (4 GB of RAM recommended).
1. First sign-in
The user is akadmin, with the password from /root/app-credentials.txt. The admin interface is at /if/admin/. Change the password and turn on two-factor authentication for this account right away.
2. Users and groups
In Directory > Users create your colleagues' accounts, and in Groups organize them into teams. Groups then decide who can reach which application.
3. Connect an application over OpenID Connect
- In Applications > Applications choose Create with provider and the OAuth2/OpenID type.
- For the redirect URI enter the callback address the application gives you (in its SSO documentation).
- Copy the Client ID, Client Secret and the configuration address (
/.well-known/openid-configuration) into the application's SSO settings.
For applications without a login of their own, authentik can sit in front of them as an authentication proxy.
4. Email
Password recovery and invitations need SMTP: add AUTHENTIK_EMAIL__HOST, __PORT, __USERNAME, __PASSWORD, __USE_TLS and __FROM to /opt/authentik/.env, then run docker compose up -d.
5. Backups
cd /opt/authentik
docker compose exec -T postgresql pg_dump -U authentik authentik | gzip > /root/authentik-$(date +%F).sql.gz
If you only need passkeys and OpenID Connect, without the rest, see Pocket ID, which is much lighter.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
Passwordless sign-in with Pocket ID
Passkeys for your applications over OpenID Connect: first sign-in, colleagues and connecting an application.
Updated 11/29/2026SecurityHow to protect your server from brute-force attacks with fail2ban
fail2ban automatically bans IPs that repeatedly try wrong passwords. Here is how to install and configure it.
Updated 11/29/2026SecurityHow to harden SSH: disable root login and change the port
Reduce your server attack surface by disabling SSH root login and moving SSH to a different port.
Updated 11/29/2026