Identity/Features/NativeSignInToWebsite: Difference between revisions

Jump to navigation Jump to search
add table of observer notifications and list of relevant ID service functions
No edit summary
(add table of observer notifications and list of relevant ID service functions)
Line 20: Line 20:
* https://people.mozilla.com/~zfang/PersonaID/PersonaIDNative2.jpg
* https://people.mozilla.com/~zfang/PersonaID/PersonaIDNative2.jpg
|Feature implementation plan={{bug|764213}} - Implement Desktop UI for website sign-in with Persona
|Feature implementation plan={{bug|764213}} - Implement Desktop UI for website sign-in with Persona
TBD - Implement Fennec UI for website sign-in with Persona
{{bug|767276}} - Implement Fennec UI for website sign-in with Persona
TBD - Implement B2G UI for website sign-in with Persona
TBD - Implement B2G UI for website sign-in with Persona
|Feature implementation notes=The UI module should listen for the following observer notifications:
|Feature implementation notes=The UI module should listen for the following observer notifications:
* identity-request
<table border=1 cellpadding=2 cellspacing=0>
* identity-auth
<tr>
* identity-auth-complete
<th>Subject
* identity-login-state-changed
<th>Topic
<th>Data
<th>Action to take
</tr>
<tr>
<td><pre>
wrappedJSObject: {
  rpId: 999,
  origin: "https://www.example.com",
}</pre></td>
<td>identity-request
<td>null
<tr>
<td><pre>
wrappedJSObject: {
  provId: 999,
}</pre></td>
<td>identity-auth
<td>''Authentication URI''
<tr>
<td>null
<td>identity-auth-complete
<td>''Authentication ID''
<tr>
<td><pre>
wrappedJSObject: {
  rpId: 999,
}</pre></td>
<td>identity-login-state-changed
<td>The identity (ie. user@example.com) for the specified origin or null if the user logged out.
</tr>
</table>
 


The UI should call the following methods:
The UI should call the following methods:
* TODO
* IdentityService.RP.getIdentitiesForSite(origin);
* IdentityService.selectIdentity(rpId, identity);
* IdentityService.RP.logout(rpId);
* IdentityService.IDP.setAuthenticationFlow(authId, provId);
}}
}}
{{FeatureInfo
{{FeatureInfo
Confirmed users
933

edits

Navigation menu