Confirmed users
933
edits
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 | ||
{{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: | ||
<table border=1 cellpadding=2 cellspacing=0> | |||
<tr> | |||
<th>Subject | |||
<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: | ||
* | * IdentityService.RP.getIdentitiesForSite(origin); | ||
* IdentityService.selectIdentity(rpId, identity); | |||
* IdentityService.RP.logout(rpId); | |||
* IdentityService.IDP.setAuthenticationFlow(authId, provId); | |||
}} | }} | ||
{{FeatureInfo | {{FeatureInfo | ||