Authentik Forward Authentication Middleware
Traefik enables you to secure your applications with authentication by using a Proxy Provider. This allows you to protect your services with Single Sign-On (SSO).
Configure an Authentik Application and Proxy Provider
The first step is to deploy the Authentik service and then configure the required components:
- Create a Proxy Provider with forward authentication.
- Create an application and assign the Proxy Provider you created.
- In the “Cookie Domain” field, add the domain of the services.
Create the Traefik Configuration
The next step is to add the Traefik middleware configuration to your instance’s dynamic configuration.
Replace AUTHENTIK_SERVER_HOST
with your instance name, e.g., authentik-server-ncoc0ooog0ckwc0gwgoocgs8
.
Protecting Services
To protect a service, the Traefik middleware label must be added to the container’s Docker Compose configuration: