Closed Bitnik212 closed 2 months ago
Keycloak version: quay.io/keycloak/keycloak:23.0
See the breaking change note:
For OAuth users, please replace
app.immich:/
withapp.immich:///oauth-callback
for the Redirect URI in your OAuth provider settings
This looks like it is actually a bug with keycloak
Experiencing this with error message:
Unexpected error when handling authentication request to identity provider
Upon clicking the "back to application" link below the error message, it successfully logs into Immich in the pop-up-browser that's used for login, but it doesn't auth in the app itself.
(note that this is already with app.immich:///oauth-callback
)
I agree this is a keycloak bug, I recommend reporting it upstream.
Issue in keycloak repository: keycloak/keycloak#32623
I see the same issue. It looks like app.immich:///oauth-callback
has "empty hostname" but app.immich:/
was fine.
While it's true that it's an issue in keycloak, is there a way/hack/setting to allow the old callback url until keycloak releases a new version with a fix? Or any other work around for logging in to the app in the meantime?
This would probably work
https://immich.app/docs/administration/oauth#mobile-redirect-uri
Nice! It worked. I did not need to set up another endpoint. I just put app.immich:/
in the mobile redirect url for now. it sounds like the old url still works (for now?)
This would probably work
https://immich.app/docs/administration/oauth#mobile-redirect-uri
Could someone please explain how this is done? I am in the situation that I need this with my keycloak instance, but I dont know how to accomplish this. How do I create a http(s)-Endpoint and redirect it to app.immich:///oauth-callback
?
Hopefully I am not too confused, not seeing the simple solution.
Thanks a lot
Did you read that link?
Immich has a route (/api/oauth/mobile-redirect) that is already configured to forward requests to app.immich:///oauth-callback, and can be used for step 1.
Did you read that link?
Immich has a route (/api/oauth/mobile-redirect) that is already configured to forward requests to app.immich:///oauth-callback, and can be used for step 1.
Hi!
yes I did and I tried to add the endpoint as mentioned with https://sub.domain.tld/api/oauth/mobile-redirect to keycloak as valid redirect url. Also enabled the override in immich and added the same url. Afterwards in the keycloak logs it shows the app.immich:///oauth-callback and I dont know why.
What version are you on?
I am sorry for beeing this late. Lot of private stuff going on.
What version are you on?
Immich v1.118.0 and Keycloak Version: 25.0.1
Edit: I could open up my own issue, if this is preferred
Please open a discussion Q&A thread and post all the relevant info there
Hi, me again. This time with a fix. I was able to fix this with the commit mentioned above. It is already in the new v26.X Releases. I just updated Keycloak to v26.0.5, disabled the setting in Immich to override the mobile redirect URI and added the app.immich:///oauth-callback to keycloak in the valid redirect URIs! It is now working!
Thank you and have a nice weekend
The bug
Got error on sign in by Keycloak sso.
Why is mobile bug:
The OS that Immich Server is running on
Ubuntu 20.04
Version of Immich Server
1.113.0
Version of Immich Mobile App
1.113
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Open app
Relevant log output
Additional information
No response