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

Fixed bug with inApp authentication #251

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Fixed bug with inApp authentication #251

merged 2 commits into from
Jun 14, 2024

Conversation

lalwani
Copy link
Collaborator

@lalwani lalwani commented Jun 14, 2024

Context

The consumer apps can use different authentication mechanisms to authenticate against Uber - using an Uber app or using inApp flow (leveraging custom tabs). We use the same app link for both forms of authentication

Issue

If the authentication flow is chosen as inApp but there's an Uber app installed that is capable of intercepting the app link then it is possible that in the middle of the inApp flow an Uber app gets launched due to a redirect from the web.

Fix

For inApp flow we use a different url from the url for Uber app sso flow. For sso the path is oauth/v2/universal/authorize but for inApp the path is oauth/v2/authorize. This ensures that no app can intercept the redirect from the web and user can successfully complete the flow on web.

@lalwani lalwani merged commit db22ddd into main Jun 14, 2024
13 checks passed
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 this pull request may close these issues.

2 participants