mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-14 07:33:36 +01:00
Using Immich with Godoxy and Authentik #60
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reddwarf666 on GitHub (Apr 21, 2025).
I installed Immich today and have a question on how to setup Immich to work with Godoxy and Authentik.
Godoxy is configured with OIDC towards Authentik.
The goal is:
https://immich.example.comThe browser part is working, I can navigate to
https://immich.example.com, Authentik asks for my cedentials and I am then on the start page of Immich where it asks for my credentials. So this is point 1 covered I think.Point 2 is where I would like the login page to not show, or have OAuth at least.
I read the OIDC/OAuth part of the Immich documentation and this got me an error : "Failed to finish oauth"
For the Immich part I read OAuth Authentication of it to set the config.
I was wondering though if the OIDC settings as done in Godoxy could be an issue?
I also saw this in the logs of Immich
So not sure if this is related to Godoxy or Authentik or Immich.
For point 3 I wonder if I need to bypass Godoxy as the levels of authentication might hinder contacting Immich from the mobile app?
The docker-compose file for Immich has these labels:
NB: should I still have the labels for middlewares in this? Could this be conflicting with the setup in of Immich and Authentik?
Godoxy OIDC config looks like this:
I realize this might not at all be related to Godoxy but I wanted to check if my thoughts and settings are in line for making this work when I have Godoxy, Authentik and Immich. Or perhaps there is someone who made this work in a comparable setup?
Cheers
@yusing commented on GitHub (Apr 21, 2025):
For apps that support OIDC natively, do not use the OIDC middleware but set up inside the app instead.
@reddwarf666 commented on GitHub (Apr 21, 2025):
I thought it had to be something like that!
Changed the labels and took away middlewares.oidc ones.
Restarted the container (down & up) and tried and still got the "Failed to finish oauth" in combination with that jwks error in the Immich log.
I will check on the Immich site and ask for help over there.
Just to be sure, does Godoxy send the headers as Immich/Authentik expects do you think? I read that the reverse proxy needs to forward all headers:
Immich Reverse Proxy
Just wanted to double check as this will probably come up when I ask for help with this on the Immich side of things.
Cheers!
@yusing commented on GitHub (Apr 21, 2025):
If you still got the error it means you have'nt configured immich oauth correctly. How GoDoxy handles header is similar to the others.
@reddwarf666 commented on GitHub (Apr 21, 2025):
Ok, thanks!
@reddwarf666 commented on GitHub (Apr 21, 2025):
Update! This might help someone at some point in some timeline 😀
By some odd reason I had the setting "Encryption Key" set in my Authentik provider for Immich with "authentik Self-signed Certificate".
This caused the JWT error
TypeError: encrypted JWTs cannot be decodedMakes sense as the origin never encoded the JWT with that self signed authentik certificate and it was also not expected to be encoded.
Your "Signing Key" in Authentik should be set, but not the option "Encryption Key"
I will close this thread as it is a) resolved and b) had nothing to do with Godoxy