Status: Unconfirmed
Owner: ----
Labels: Pri-2 Via-Wizard Type-Bug OS-Android
New issue 580069 by
jejef...@gmail.com: Chrome Custom tab not triggering
url scheme intent
https://code.google.com/p/chromium/issues/detail?id=580069
Steps to reproduce the problem:
1. Authenticate through a OpenId Connect code flow with Chrome custom tabs
and redirect the user to the app thanks to a custom url scheme intent
2. Launch the process again while the session is still up
3. The intent isn't triggered anymore (ERR_UNKNOWN_URL_SCHEME)
What is the expected behavior?
What went wrong?
I need to authenticate the users through a oauth2 process using chrome
custom tabs. The user is sent to the authentication form then types is
login/password. Then it is redirected to a url like myapp://something. An
intent is then triggered and the user is sent back to the app.
The process is working well at first launch when the user is logging in
through the authentication form. However, if I try to get another
authentication code, I get an ERR_UNKNOWN_URL_SCHEME error and the app
stays on the custom tabs.
Here are the three cases I tested :
1st case : Chrome custom tab, forcing the user to use the authentication
form
-The user is sent to the authentication form
-A 302 redirect is done to a custom url
-The user is switched to the app
2nd case : Chrome custom tab (using the session cookie)
-The user is sent to the authentication website
-A 302 redirect is done to a custom url
-An ERR_UNKNOWN_URL_SCHEME occurs
3rd case : Chrome browser (using the authentication form or the session
cookie)
-The user is sent to the authentication website
-A 302 redirect is done to a custom url
-The user is switched to the app
The following RFC draft
(
https://tools.ietf.org/html/draft-wdenniss-oauth-native-apps-00) documents
how native apps can implement Oauth2 authorization flows. This
implementation can currently be done with Google Chrome but doesn't work
with Chrome Custom Tabs.
Here's a video to explain the issue :
https://www.youtube.com/watch?v=Y-4uLpUv1lA
Did this work before? No
Chrome version: 47.0.2526.83 Channel: stable
OS Version: 5.1.1
Flash Version: Shockwave Flash 20.0 r0
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings