Most functions return jQuery Deferreds for registering asynchronous callbacks.
Retrieve an assertion and use it to log the user into your site.
- requestArgs (object) – Options to pass to navigator.id.request.
Deferred that resolves once the user has been logged in.
Log the user out of your site.
Returns: Deferred that resolves once the user has been logged out.
Retrieve an assertion via BrowserID.
Returns: Deferred that resolves with the assertion once it is retrieved.
Verify that the given assertion is valid, and log the user in.
- assertion (string) – Assertion to verify.
Deferred that resolves with the login view response once login is complete.
Fetch information from the Info view, such as a CSRF token or the parameters for the Persona popup.
Returns: Deferred that resolves with the results of the AJAX request.
Check for the query string parameter used to signal a failed login.
- location (string) – Location object containing the URL to check. Defaults to window.location.
True if the parameter was found and login failed, false otherwise.