How goauthentik/authentik works
authentik is a self-hosted identity provider for SSO. Its central user-facing path is configurable flow execution: users interact with stages to authenticate or enroll, while policies can govern access. The repository also includes protocol providers, endpoint connectors, administrative APIs, blueprints, and event notifications. The graph preserves those documented product branches and sampled internal layers; unsampled subsystem links are omitted or marked unverified rather than inferred from directory names.
Main entry points: executor.py Flow executor · stage.py Flow stages · models.py Users and groups · flow_manager.py Identity sources
Components 19
Identity workflows
- Flow definitions
authentik/flows/models.py - Flow planner
authentik/flows/planner.py - Flow executor
authentik/flows/views/executor.py - Flow stages
authentik/flows/stage.py - Identity sources
authentik/core/sources/flow_manager.py - Users and groups
authentik/core/models.py
Access and endpoints
- Policy engine
authentik/policies/engine.py - Endpoint connectors
authentik/endpoints/controller.py - Agent connector
authentik/endpoints/connectors/agent/controller.py
SSO protocols
- SSO providers
authentik/providers - LDAP outpost
cmd/ldap/main.go - RADIUS outpost
cmd/radius/main.go - SAML support
authentik/common/saml
Administration and operations
- Blueprint management
authentik/blueprints/v1 - Events and notifications
authentik/events/models.py - Admin APIs
authentik/admin/api - File storage
authentik/admin/files/manager.py - Configuration
authentik/lib/config.py
Other components
- User
Connections 17
- User → Flow executor: starts flow
- Flow executor → Flow planner: plans stages
- Flow executor → Flow stages: runs stages
authentik/flows/stage.py - Flow stages → Flow executor: uses executor
authentik/flows/stage.py - Identity sources → Users and groups: matches identities
authentik/core/sources/flow_manager.py - Identity sources → Flow planner: resumes flow
authentik/core/sources/flow_manager.py - Agent connector → Endpoint connectors: uses controller
authentik/endpoints/connectors/agent/controller.py - Endpoint connectors → Flow stages: provides stage views
authentik/endpoints/controller.py - Policy engine → Users and groups: evaluates identities
authentik/policies/engine.py - SSO providers → User: offers SSO
README.md - LDAP outpost → User: serves LDAP
README.md - RADIUS outpost → User: serves RADIUS
README.md - SAML support → User: supports SAML
README.md - Blueprint management → Flow definitions: configures flows
- Admin APIs → Users and groups: administers identity
- File storage → Configuration: reads settings
authentik/admin/files/manager.py - Events and notifications → User: notifies users