2013-07-17 15:46:59 +02:00
|
|
|
/* Watch login and logout events */
|
|
|
|
|
|
|
|
navigator.id.watch({
|
|
|
|
loggedInUser: null,
|
|
|
|
onlogin: function(assertion) {
|
2013-09-30 16:37:15 +02:00
|
|
|
// POST assertion
|
2013-10-15 11:58:37 +02:00
|
|
|
$('form.BrowserID').append('<input type="hidden" name="browserIdAssertion" value="'+assertion+'" />').submit();
|
2013-07-17 15:46:59 +02:00
|
|
|
},
|
|
|
|
onlogout: function() {
|
|
|
|
// Do nothing
|
|
|
|
}
|
|
|
|
});
|