Switch Fennec's Onboarding, New Tab, and Settings menu to use FxA's "email first" auth flow
Categories
(Firefox for Android Graveyard :: Firefox Accounts, enhancement, P2)
Tracking
(firefox-esr60 wontfix, firefox-esr68 affected, firefox69 wontfix, firefox70 wontfix, firefox71 wontfix)
People
(Reporter: cpeterson, Assigned: vlad.baicu)
References
Details
(Whiteboard: [fennec68.2?])
Fenix and new mobile products use FxA's "email first" auth flow. We should switch Fennec's calls to the separate sign-up ("Create New Firefox Account") and sign-in entrypoints to the email-first auth flow. This will be a better user experience for both existing and new users (because they are less likely to be confused by an existing user landing on a sign-up page or a new user landing on the sign-in page).
- The new Onboarding's and New Tab's "Sign up" buttons point to
about:accounts?action=signup&...
(the "Create a Firefox Account" page with Email, Password, and Repeat Password form). - The "Sign in" Settings menu item and the New Tab's tiny "Sign in" link point to
about:accounts?action=signin&...
(the "Sign in to continue to Firefox Sync" page with Email and Password form). - The FxA team recommends we change all of them to the email-first page like
about:accounts?action=email&...
(which will open a page like https://accounts.firefox.com/?service=sync&context=fx_fennec_v1&action=email).
Grisha says the about:accounts
page will need to be modified to pass the new action=email
parameter through to the accounts.firefox.com iframe. Fennec switched from signup to signin flow by default two years ago in bug 1229216. Switch to the email-first flow should be easy following steps in that signin bug.
The FxA team is considering redirecting action=signup and action=signin pages to the new action=email auth flow on the server side, but we can fix and test Fennec on the client side in the mean time:
Comment 1•5 years ago
|
||
Missing from Bug 1229216 are changes necessary to aboutAccounts.js.
Add action=email handling to: https://dxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/aboutAccounts.js#263
Reporter | ||
Comment 2•5 years ago
|
||
Grisha, Vlad has some questions about the action
parameter and "email first" page's URL. What do you suggest? Would this require an FxA server side fix? Or is using two separate URLs on the client side OK?
Vlad said:
I have managed to implement the new e-mail action in Fennec but I’ve noticed that it does not work out of the box due to a schema difference for the action
parameter:
- When passing in the “signin” parameter to open the sign in page, the URL for the page is something like https://accounts.firefox.com/signin?entrypoint=awesomescreen-signin&service=sync&context=fx_fennec_v1 (note the absence of the explicit “action” parameter).
- But when attempting that endpoint with the email action the request returns 404 not found (e.g. https://accounts.firefox.com/email?entrypoint=awesomescreen-signup&service=sync&context=fx_fennec_v1).
In order to make it work in Fennec I had to hardcode the URL a bit. Ideally, I think we would want to keep the same schema for this new page as well.
Comment 3•5 years ago
|
||
https://accounts.firefox.com/?action=email&...
is the way to trigger an email-first flow. Sometime before the end of the year (i think) we'll retire other endpoints (signin, signup), so there will be no inconsistency.
Just make sure to leave a comment in aboutAccounts.js
to explain the reason why there's a different handling of action=email
.
Comment 4•5 years ago
|
||
We decided not to address this right now so moving to P2. Will re-prioritize at a later time.
Comment 5•5 years ago
|
||
This should be done on the FxA side with train 149 shipping in 1 week:
https://github.com/mozilla/fxa/issues/639
Let's close this once that ships
Comment 6•4 years ago
|
||
Updated•4 years ago
|
Description
•