Enable Monitor authentication from below-search snippet template
Categories
(Firefox :: Messaging System, enhancement, P1)
Tracking
()
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
Comment 1•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
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.
Comment 4•7 years ago
|
||
Part 2 included some internal refactoring of fetch params used by bug 1569303
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Description
•