946
edits
No edit summary |
|||
| Line 36: | Line 36: | ||
:Causes an email disclosure widget to appear. This is used by a relying party to request an identity assertion (for example, if an identity assertion is required before being able to proceed to a particular section of a site). | :Causes an email disclosure widget to appear. This is used by a relying party to request an identity assertion (for example, if an identity assertion is required before being able to proceed to a particular section of a site). | ||
;navigator.id.sessions = [session1, session2, ...]; | |||
:Sets the current sessions at the site. This API allows the user agent to be notified of active and passive sessions, and gives it the tools to act on them (e.g., terminate a session). See the session object for more information. | |||
;Session objects | |||
Session objects are JavaScript objects with the following properties. All are required: | |||
* id: email corresponding to the session | |||
* status: active (current active session), passive (expired session) | |||
* expires: time at which the browser should assume the session will expire. that is, the browser will assume an active session is still active until this time. | |||
* terminate: function the object should invoke to terminate this session. | |||
Sample object: | |||
{ | |||
id: "alice@site.com", | |||
status: "active", | |||
expires: <format tbd>, | |||
terminate: function() { /* XHR to server to invalidate cookie */ } | |||
} | |||
== Secondary Authority Verification API == | == Secondary Authority Verification API == | ||
edits