Agentic hosting is here. Connect to our MCP now
CloudLinux.ro
Security

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

  1. In Applications > Applications choose Create with provider and the OAuth2/OpenID type.
  2. For the redirect URI enter the callback address the application gives you (in its SSO documentation).
  3. 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 pricing

Related tutorials