Open Bug 1158869 Opened 4 years ago Updated Last year

Make logging in to Firefox Account-backed web properties easy when the device has an Android Firefox Account

Categories

(Firefox for Android :: Firefox Accounts, defect, P5)

defect

Tracking

()

People

(Reporter: nalexander, Unassigned)

References

(Blocks 1 open bug)

Details

Right now a Firefox for Android user who has an Android Firefox Account will have to log in to any Firefox Account-backed service on the web.  (This is because they have used a custom native sign in flow that does provide log in credentials to any web context.)

We should try to make this better, perhaps with an X-Auto-Login like solution.  

This ticket tracks adding a "semi-native" flow whereby a user visiting accounts.firefox.com or an oauth-backed service does not have to enter their password again if the Android Firefox Account on device can provide a login credential.
For context: this hasn't be an issue to date because Firefox for Android users essentially never interact with a Firefox Account-backed web property.  They don't use accounts.firefox.com (except by very occasional choice) or a Hello-like OAuth flow.

vladikoff, others: does the existing WebChannel messaging system already allow a "clean" browser context (one with no cookies or localStorage, etc) to log in to, say, accounts.firefox.com or the oauth log-in page for a referrer?

If so perhaps we can make this work by implementing the accounts WebChannel interface on Android.
Flags: needinfo?(vlad)
Blocks: 1158875
(In reply to Nick Alexander :nalexander from comment #1)
> For context: this hasn't be an issue to date because Firefox for Android
> users essentially never interact with a Firefox Account-backed web property.
> They don't use accounts.firefox.com (except by very occasional choice) or a
> Hello-like OAuth flow.
> 
> vladikoff, others: does the existing WebChannel messaging system already
> allow a "clean" browser context (one with no cookies or localStorage, etc)
> to log in to, say, accounts.firefox.com or the oauth log-in page for a
> referrer?
> 
> If so perhaps we can make this work by implementing the accounts WebChannel
> interface on Android.

Hey Nick,

I created a content-server bug for this feature: https://github.com/mozilla/fxa-content-server/issues/2353
Currently we don't have an easy away to start a clean "suggested" login flow AFAIK. 
I wonder if there is a way to populate localStorage for some "origin" before displaying the login webview.
 
Vlad.
Flags: needinfo?(vlad)
Bulk edit: moving potentially relevant issues from disabled Android Background Services product to Firefox for Android.

Removing priority to throw back to triage owners: please close these bugs if they're no longer relevant! Thanks!
Product: Android Background Services → Firefox for Android
Priority: -- → P3
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.