locked out from server after enabling oauth
Hello team!
I tried to enable the oauth with authelia but I might have done some mistakes and not I cannot login even with old password auth.
log from server container
tested already stack restart after running

22 Replies
I think this is in fact a bug. If OAuth get config fails while resolving the issuer url it errors out and while password login isn't disabled, it doesn't show the form.
Should be fixed in https://github.com/immich-app/immich/pull/1322
GitHub
fix(web): login error handling by jrasm91 ยท Pull Request #1322 ยท im...
Enable password login if the api request to load auth config fails for whatever reason. Also, new (unhandled) error page ๐!
@mariomare22 you said you set up your instance just today, right? For now it's probably easiest to just delete it and start over, I believe with the current misconfiguration + error handling you're basically locked out
done! testing again authelia ๐
Fwiw the error you posted seemed to indicate that the url you entered was wrong
Just a heads up so it doesn't happen again ๐
If it does break you can try using tag 1322 for the web container instead of release
Until you get it working.
this is the setup client I am using in authelia...
not I am going to Immich
I hope i did not do any booboo
Immich doesn't ask for groups scope, not sure if that matters.
now what is issuer url? ๐ never seen this before
it should be auth.mydomain.com where authelia is listening...
https://www.authelia.com/integration/openid-connect/introduction/#well-known-discovery-endpoints
Should be this, I think
Authelia
OpenID Connect - Integration
An introduction into integrating the Authelia OpenID Connect Provider with an OpenID Connect relying party
Try it in your browser to check if you're not sure
It's working just fine!!! the error was exactly this!
I put auth.mydomain.com/api/oidc/authorization
and was not redirecting properly obviously
testing mobile ๐
Did your add the mobile redirect URI?
yes! indeed but the redirect threw me an error!
What error?
testing from ipadin
https://my.domain.com/api/oauth/mobile-redirect
this is in the settings
and in the endpointDid you turn on the mobile compatible thing?
when I put in the ipad app
https://my.domain.com/api
I get the oauth button and when I press I get an error...
the redirect_uri parameter does not match any of the oauth 2.0.....
of course...I don't think you need it with authelia
Can you try turning it off and then adding this redirect URI?
app.immich:/
right ๐
yes this was added and the disable was needed!
That's mostly for when the mobile redirect URI can't be set for some validation rules by the provider
that means that authelia does a good job at redirecting...