Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 5b3cc219e1
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (70 sloc) 2.156 kB
<%@ taglib uri="" prefix="c"%>
<script type="text/javascript"
Login using <a href="">Mozilla
Persona</a> a Browser ID implementation
<br> *${}*
<c:when test="${empty}">
<input type="image" src="persona-only-signin-link.png" name="image"
<a href="">
Simple Java BrowserID Verifier </a>
<script src=""></script>
<script type="text/javascript">
var currentUser = '';{
loggedInUser : currentUser,
onlogin : function(assertion) {
// A user has logged in! Here you need to:
// 1. Send the assertion to your backend for verification and to create a session.
// 2. Update your UI.
loginRequest = $.ajax({
type : 'POST',
url : 'in', // This is a URL on your website.
data : {
assertion : assertion
loginRequest.done(function(res, status, xhr) {
});, status, error) {;
alert("Login error: " + error);
onlogout : function() {
// A user has logged out! Here you need to:
// Tear down the user's session by redirecting the user or making a call to your backend.
// Also, make sure loggedInUser will get set to null on the next page load.
// (That's a literal JavaScript null. Not false, 0, or undefined. null.)
logoutRequest = $.ajax({
type : 'POST',
url : 'out' // This is a URL on your website.
logoutRequest.done(function(res, status, xhr) {
});, status, error) {
alert("Logout error: " + error);
Jump to Line
Something went wrong with that request. Please try again.