Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS app Oauth not working with latest update #13467

Closed
1 of 3 tasks
chaosclarity84 opened this issue Oct 15, 2024 · 14 comments · Fixed by #13474
Closed
1 of 3 tasks

iOS app Oauth not working with latest update #13467

chaosclarity84 opened this issue Oct 15, 2024 · 14 comments · Fixed by #13474

Comments

@chaosclarity84
Copy link

The bug

I updated to latest Immich today, as well as the iOS app. I have setup the Google OAuth configuration, which is working fine for desktop browser login, and was previously working great on the iOS app. But after today's update, I can no longer login using the iOS app with Google OAuth. Just so happens my wife wanted to sign up and use it today, that's how I discovered it was broken.

The error I receive after tapping the OAuth login within the app is:
custom scheme uris are not allowed for 'web' client type

The OS that Immich Server is running on

Unraid Docker

Version of Immich Server

latest

Version of Immich Mobile App

latest

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Not sure how to pull that in Unraid, for me it's just a gui with text fields, but nothing is configured out of the ordinary I would say.

Your .env content

N/A

Reproduction steps

  1. Log out of Immich ios app
  2. Attempt to log back in using Google OAuth

Relevant log output

No response

Additional information

No response

@alextran1502
Copy link
Contributor

If you revert to 1.117.0 on the server, does it work?

@chaosclarity84
Copy link
Author

If you revert to 1.117.0 on the server, does it work?

Is that safe to do? I don't want to break anything more than it is lol

@bo0tzz
Copy link
Member

bo0tzz commented Oct 15, 2024

What are the redirect URIs you've configured on your oauth server?

@chaosclarity84
Copy link
Author

What are the redirect URIs you've configured on your oauth server?

image

@nicokaiser
Copy link

Does adding app.immich:///oauth-callback as additional Redirect URI help? I think v0.113.0 added this.

@chaosclarity84
Copy link
Author

chaosclarity84 commented Oct 15, 2024

Does adding app.immich:///oauth-callback as additional Redirect URI help? I think v0.113.0 added this.

Unfortunately google doesn't allow you to add that, it shows as invalid.
image

@bo0tzz
Copy link
Member

bo0tzz commented Oct 15, 2024

Can you share your complete oauth config on both Immich and Google? Of course, redact client secrets and such ;)

@Harguer

This comment was marked as off-topic.

@bo0tzz
Copy link
Member

bo0tzz commented Oct 15, 2024

@Harguer you have a completely unrelated issue, and it's caused by not reading the release notes.

@chaosclarity84
Copy link
Author

Can you share your complete oauth config on both Immich and Google? Of course, redact client secrets and such ;)

Sure, here you go:
image
image

@chaosclarity84
Copy link
Author

chaosclarity84 commented Oct 15, 2024 via email

@alextran1502
Copy link
Contributor

alextran1502 commented Oct 15, 2024

@chaosclarity84 update the server to v1.118.1 will fix it

@sgbangale
Copy link

sgbangale commented Oct 21, 2024

image
I have configured google oauth and getting error when I use iOS app v1.118.0 and server version is as per below screenshot
image

I can use google oauth from web browser, also changed redirect uri 'https://photos.xxx.xxx/app/oauth/mobile-redirect'

@bo0tzz
Copy link
Member

bo0tzz commented Oct 21, 2024

That should be /api/ not /app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants