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

WebAuthProvider's callback URI uses https #52

Closed
newt-beach opened this issue Dec 8, 2016 · 2 comments
Closed

WebAuthProvider's callback URI uses https #52

newt-beach opened this issue Dec 8, 2016 · 2 comments
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature

Comments

@newt-beach
Copy link

newt-beach commented Dec 8, 2016

After following following this WebAuthProvider guide, the browser authenticates and closes, but instead of going back to the app an intent picker is shown, prompting the user to pick whether they'll open the callback in our app or in the browser:
device-2016-12-08-141135

This is an issue because the average user is likely to get confused by this dialog, and if the browser is set as the default handler for the callback this way, there's no easy way for them to reset the default.

Currently when using a WebAuthProvider, the callback URI is of the form: https://{AUTH0_DOMAIN}/android/{BUNDLE_NAME}/callback.
However, for Android to know to open our app on the first try, the callback URI should be of the form: {BUNDLE_NAME}://{AUTH0_DOMAIN}/android/{BUNDLE_NAME}/callback.

Currently, it's working on iOS, with the bundle identifier as the URI protocol.

@hzalaz hzalaz added the enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature label Dec 12, 2016
@hzalaz
Copy link
Member

hzalaz commented Dec 12, 2016

Currently, it's working on iOS, with the bundle identifier as the URI protocol.

It works since it's the only way it could work without using Universal Links, which is hard to setup.

We are considering adding the option to allow to choose the scheme and document better the use of Android AppLinks that will mitigate this issue

@lbalmaceda
Copy link
Contributor

Merged. Will be available on the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature
Projects
None yet
Development

No branches or pull requests

3 participants