Authentik — Open Source Identity Provider & SSO Platform
Authentik is a flexible open-source identity provider with SSO, MFA, user enrollment flows, and application proxy — the authentication glue for your self-hosted stack.
这个资产会安全暂存
这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。
npx -y tokrepo@latest install e890152d-34a9-11f1-9bc6-00163e2b0d79 --target codex先暂存文件;激活前需要读取暂存 README 和安装计划。
What it is
Authentik is a flexible open-source identity provider offering single sign-on (SSO), multi-factor authentication (MFA), user enrollment flows, and an application proxy. It serves as the authentication layer for self-hosted infrastructure, connecting all your applications behind one login system with support for SAML, OAuth2, OIDC, LDAP, and SCIM.
Authentik targets homelab operators and organizations running self-hosted services that need centralized authentication without paying for commercial identity providers like Okta or Azure AD.
Why it saves time or tokens
Without a centralized identity provider, each self-hosted application manages its own user database, passwords, and MFA. Authentik consolidates this into one system. Users log in once and access all connected applications. Adding a new application takes minutes through the Authentik UI rather than implementing auth from scratch. For AI-managed infrastructure, Authentik provides a single API for user provisioning and access control.
How to use
- Deploy Authentik with Docker Compose using the official compose file
- Access the admin interface and configure your identity sources and policies
- Add applications using SAML, OAuth2, OIDC, or the proxy provider
Example
# docker-compose.yml (simplified)
version: '3'
services:
authentik-server:
image: ghcr.io/goauthentik/server:latest
command: server
environment:
AUTHENTIK_SECRET_KEY: your-secret-key
AUTHENTIK_POSTGRESQL__HOST: postgresql
ports:
- '9000:9000'
- '9443:9443'
authentik-worker:
image: ghcr.io/goauthentik/server:latest
command: worker
postgresql:
image: postgres:16
redis:
image: redis:7
| Protocol | Use Case |
|---|---|
| OAuth2/OIDC | Modern web apps |
| SAML | Enterprise apps |
| LDAP | Legacy systems |
| Proxy | Apps without auth support |
| SCIM | User provisioning |
Related on TokRepo
- AI tools for security — authentication and security tools on TokRepo
- AI tools for self-hosted — self-hosted infrastructure
Common pitfalls
- Authentik requires PostgreSQL and Redis; ensure these are properly backed up as they contain all user data and configuration
- The proxy provider adds latency to every request; for performance-sensitive applications, use native OIDC integration instead
- Enrollment flows are powerful but complex; test flows thoroughly before enabling for end users
常见问题
Authentik supports OAuth2, OpenID Connect (OIDC), SAML 2.0, LDAP, and SCIM. It can act as an identity provider for any application that supports these standards. The proxy provider adds authentication to applications that have no native auth support by sitting in front of them.
Both are open-source identity providers. Keycloak is Java-based and backed by Red Hat with a longer track record. Authentik is Python-based with a more modern UI and flow system. Authentik's proxy provider is particularly useful for homelab setups. Choose based on your infrastructure preferences and community support needs.
Yes. Authentik supports TOTP (authenticator apps), WebAuthn (hardware keys like YubiKey), SMS, and email-based verification. You configure MFA requirements per application or user group through policy bindings. MFA can be required for all users or only when risk conditions are met.
Yes. The proxy provider sits in front of any web application and requires authentication before granting access. This works for dashboards, admin panels, and legacy apps that lack their own auth system. The proxy passes user identity headers to the backend application.
Enrollment flows are customizable sequences of stages (forms, email verification, MFA setup, approval) that users go through when creating an account. You design flows visually in the admin interface. Different applications can use different enrollment flows with different requirements.
引用来源 (3)
- Authentik GitHub— Authentik is an open-source identity provider
- Authentik Docs— Authentik supports SAML, OAuth2, OIDC, LDAP, and SCIM
- OIDC— OpenID Connect specification for authentication
来源与感谢
- GitHub: goauthentik/authentik — 20.9K+ ⭐
- Website: goauthentik.io
讨论
相关资产
Keycloak — Open Source Identity & Access Management
Keycloak is the most widely deployed open-source IAM solution. SSO, OIDC, SAML, LDAP federation, MFA, social login, and user management for enterprise applications.
Huly — All-in-One Open Source Project Management Platform
Huly is an open-source alternative to Linear, Jira, Slack, and Notion. Project tracking, team chat, knowledge base, and HR tools in a single unified platform.
Documenso — Open Source Document Signing Platform
Documenso is an open-source DocuSign alternative for self-hosted document signing with PDF e-signatures, audit trails, and Next.js stack.
SigNoz — Open Source APM & Observability Platform
SigNoz is an open-source Datadog/New Relic alternative with logs, traces, and metrics in one platform. Native OpenTelemetry support, ClickHouse backend, and powerful dashboards.