[OIDC] Infinite redirects to homarr
I tried to setup OIDC with homarr with less than optimal success.
The docs are sadly also either outdated or flat out wrong in some aspects
For example AUTH_PROVIDER has to be oidc without quotation marks. Else homarr will complain that this method does not exist.
Given the searched together configuration i found on this discord i have the following env vars defined now:
And the following Nix OCI Container setup:
If you go on to my site https://homarr.hammerclock.net you will see that it just infinitely redirects to itself.
The logs spams the following error:
Also important to note: Homarr does not send a single request to my auth server... i literally stopped my Authentik instance and still had the exact same issue
Solution:Jump to solution
Issue found....
AUTH_OIDC_URI has to be the path to the configuration: https://auth.hammerclock.net/application/o/homarr/.well-known/openid-configuration...
11 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Homarr Version: 0.15.4
Operating System: NixOS
404 indicates that your OIDC URLs are incorrect. Please make sure that they are valid
Authentik not logging anything indicates that a proxy in front could also be blocking / dropping your request. Please check your logs there as well
Absolutely positive that they are valid:
https://auth.hammerclock.net/application/o/homarr/
the reverse proxy also does not show any issues from what i can gather
only normal access
@Tag can you look into this?
@DerHammerclock the log not showing anything is a sign that some component is set up incorrectly. Please wait for Tag to reply
What i meant is that it shows normal access
But i just see a 404 inbetween 0_0
imma check that rq
What the hell is it even trying there
It would have to be
what the
Solution
Issue found....
AUTH_OIDC_URI has to be the path to the configuration: https://auth.hammerclock.net/application/o/homarr/.well-known/openid-configuration
Snippet from the OIDC code, we're already appending the path ❓❓
That's the only place we use the OIDC_URI too which confuses me even more.
I would understand for "https://auth.domain.tld/application/o/homarr" to work, but doubling the "/.well-known/openid-configuration" is wild that it works
i have similar issue but with http error code 301 Moved Permanently
This looks like a different issue. This ticket is already closed though, could you open a new ticket? It's better for searching
(My first assessment would be to try and add the NEXTAUTH_URL env variable if you haven't yet)