Labs/F1/Modularity: Difference between revisions

Line 37: Line 37:
=== Authentication ===
=== Authentication ===


F1, or any other browser feature that uses WMF, does not get involved in the user's authentication with the WebMod's backend server beyond coordinating the WebMod's UI needs. Specifically:
F1, or any other WMF feature mediator (e.g. image share), does not get involved in the user's authentication with the WebMod's backend server beyond coordinating the WebMod's UI needs. Specifically:


* WMF asks the WebMod its login status.
* WMF asks the WebMod its login status.
* the WebMod may return a user-information blob, or a "need-to-login" message.
* the WebMod may return either
* a user-information blob, or
* a "need-to-login" message.
* When WMF receives a "need-to-login" message from the WebMod, it opens up a pop-up to the WebMod's preferred login URL.
* When WMF receives a "need-to-login" message from the WebMod, it opens up a pop-up to the WebMod's preferred login URL.


668

edits