OAuth Mobile with Authelia
Hello everyone! Let me start by thanking everyone involved for this great app!
I am configuring OAuth authentication with Authelia serving as a oidc server. On the web part everything is working great! I tried to follow the instructions for the Mobile Redirect URI as I understand that authelia only allows HTTP and HTTPS. However, it is not working. I think I am missing a step but I found the instructions a bit unclear. I believe the problem might be in the first step as I am unsure how to "configure an http(s) endpoint to forwards requests to app.immich:/" (i.e. if this needs to be configured in my reverse proxy, Traefik) Would be great if someone could help! Thank you in advance.
Sending the Oauth settings and authelia config too:


13 Replies
@zody If I recall correctly, you also use Authelia, correct? Do you have any advises?
For my setup I don't use the override. In your authelia config set one of your redirects to app.immich:/
I don't use the mobile redirect one
That's all I needed
in authelia config works fine with the app
I tried that but I am getting a 401 error when inputting the server url
disable
MOBILE REDIRECT URI OVERRIDE
in immich settingsYou have
auth/login
User-settings
app.immich:/
As the three redirects?
Yes
This is what shows up on my iPad

Also just tried to update the server and clients and it's still the same


this works fine for me. maybe your reverse proxy is doing something weird.. but OIDC works fine on the web?
For me it's still showing the same error, but it's working in the web. What proxy are you using? Also, when you write your server endpoint in the Immich app does a popup come up so you can write your authelia credentials?
I just figured out why it wasn't working. I am using traefik and I was setting authelia as a middleware. I was having the same problem in Nextcloud (although I am pretty sure there was another service that was working this way). The moment I removed the middleware everything starts working normally. I know the answer was super simple but I've been configuring OIDC clients all day and got everything confused 😅 Anyway, thanks for all your help! I hope this can help someone having the same problem