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

fix(mobile): explicit launcher uri for oauth #10832

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qrkourier
Copy link

I get the expected result with the APK build on my Pixel 6 Pro w/ Android 14. Resolves #2932

To test, I used an Auth0 generic web app with allowed callback app.immich:///, which represents a request for the root / resource from app.immich with a standard :// separator between scheme and resource.

It's my first contribution so I'll be orienting myself to testing norms after I see what fires off with this submission.

Happy to iterate on this. It will be a breaking change for anyone using mobile OAuth. The fix for them is to modify their IdP to allow callback app.immich:///. If they're using the mobile callback override URI then it might go unnoticed if app.immich:/ was successfully launching the app and concluding the login flow. It's not clear to me whether this is currently broken for everyone.

@github-actions github-actions bot added documentation Improvements or additions to documentation 📱mobile 🖥️web 🗄️server labels Jul 4, 2024
@qrkourier
Copy link
Author

🤔 I've got some unexpected localization edits in there. Maybe upstream history changed. I'll reconcile those.

Copy link
Author

@qrkourier qrkourier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reverted the unexpected changes.

Copy link

github-actions bot commented Jul 4, 2024

📖 Documentation deployed to pr-10832.preview.immich.app

@alextran1502
Copy link
Contributor

FYI, in the future, for mobile translation, you only need to modify the en-US.json file

@zackpollard
Copy link
Contributor

You have some prettier failures, if you could fix those then we can look at this PR

@qrkourier qrkourier changed the title add root resource path '/' to mobile oauth scheme fix(mobile): explicit launcher uri for oauth Jul 5, 2024
@qrkourier
Copy link
Author

@zackpollard 🏐

@jrasm91 jrasm91 self-assigned this Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation 📱mobile 🗄️server 🖥️web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] OAuth login wouldn't get redirected on tablet android devices
4 participants