Replies: 1 comment 3 replies
-
Is the error you experienced when logging into the website like this? If so, I also experienced the same thing. And the method that worked for me to overcome it was changing the Caddy config from:
to:
I deleted the route and everything ran normally. But I'm not sure if there will be any security issues or not after deleting that route. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm new to Authentik and have been setting it up in my homelab over the last few days. Integrating applications via OIDC has been a breeze, but I've been struggling with forward authentication. My goal is put some of my applications on the internet, but require authentication before a user can even see the page. Because I don't require any information about the user at this stage, domain-based forward authentication seemed like the right choice here.
I did manage to set this up in Authentik by creating a Proxy Provider called "Caddy" (my reverse proxy) and selecting domain level forward auth. I've set the cookie domain to be the TLD for the applications I want to expose. This all works quite well, but I realised that the
redirect_uri
is always Authentik itself, e.g.auth.example.com
when I try to accessapp1.example.com
.Because this seems like a limitation of domain level forward auth, I switched to single application forward auth by creating a new provider called "Caddy for App 1". This allowed me to set a redirect URL. I then associated my application with this provider and re-enabled it in the outpost (which seems to be by-provider, not application).
However, now Authentik reports a 404 for
https://auth.example.com/outpost.goauthentik.io/auth/caddy
. I've experimented with various setups, but I cannot fix the 404 unless I go back to the old domain level provider and fix the outpost config again. From the docs it is not clear whether the/caddy
value at the end is fixed or depends on the provider name.Here is my Caddy config:
My configuration in Authentik:
Here's what I've tried:
None of these things help and I'm a bit stuck. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions