Closed Bug 1570026 Opened 2 months ago Closed Last month

Enable Monitor authentication from below-search snippet template

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
Firefox 70
Iteration:
70.2 - Jul 22 - Aug 4
Tracking Status
firefox69 --- fixed
firefox70 --- verified

People

(Reporter: jcollings, Assigned: k88hudson)

References

Details

(Keywords: github-merged)

Attachments

(1 file)

In order to support a new monitor snippet in Firefox 69, we would like to allow users to authenticate and land on the breach report (from clicking on the snippet in newtab).

Per Justin Crawford (they were able to do it on What's new page):
1)Improve Snippets code so that it can retrieve a Flow ID and Flow Time from FxA servers
2)Point the "Sign In To Monitor" CTA to a specific URL on monitor.firefox.com, including a bunch of parameters which can be seen in the URL below (which I copied from WNP 68):

https://monitor.firefox.com/oauth/init?utm_source={{ something-from-snippets }}&utm_campaign={{ something-from-snippets }}&form_type={{ something-to-talk-to-FxA-team-about }}&entrypoint={{ something-from-snippets }}&flowBeginTime={{ retrieved-from-FxA-servers-before-click }}&flowId={{ retrieved-from-FxA-servers-before-click }}

Per Luke from Monitor:
I believe it's an open "/metrics-flow?" endpoint on the FxA servers already. E.g., here's the Monitor code that uses it to get a Flow ID & time: https://github.com/mozilla/blurts-server/blob/d99aa8133628202a15ce2471869bf5e3714ed04f/public/js/fxa-analytics.js#L80

And here's the code from the WNP page:
https://github.com/mozilla/bedrock/blob/d2a127ae9574b10b08a694a8305fc7ee3838f4dd/media/js/base/mozilla-fxa-form.js#L49-L68

Assignee: nobody → khudson
Keywords: github-merged
Blocks: 1571115
Status: NEW → RESOLVED
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70

I have verified this issue with the latest Firefox Nightly (70.0a1 Build ID - 20190811215021) installed, on Windows 10 x64, Arch Linux and Mac 10.14.5. Now, the "Sign in to continue to Firefox Monitor" page is displayed after the "Get monitor" button is clicked.

Status: RESOLVED → VERIFIED

Part 2 included some internal refactoring of fetch params used by bug 1569303

You need to log in before you can comment on or make changes to this bug.