Authentik
Setup Authentik
- Log in to the Authentik Admin Interface and navigate to Applications > Providers.
- Click Create and select OAuth2/OpenID Provider.
- Give it a name and select the Authorization flow you want.
- Scroll down to Redirect URIs/Origins and specify the public URL of your application and append the path
/oidc/callback
.
Eg.:https://my-app.mydomain.com/oidc/callback
. - Once the provider is set up, navigate to Applications > Applications.
- Click Create to add a new one and enter a name and slug. Choose your newly created provider.
Middleware Configuration
tip
You will find the url, client id and secret in the Provider-details.
http:
middlewares:
oidc-auth:
plugin:
traefik-oidc-auth:
Provider:
Url: "https://login.my-authentik.com/application/o/<app-slug>"
ClientId: "<YourClientId>"
ClientSecret: "<YourClientSecret>"
Scopes: ["openid", "profile", "email"]