
Mozilla Persona
***************

Support for Mozilla Persona is possible by posting the "assertion"
code to "/complete/persona/" URL.

The setup doesn't need any setting, just the usual Mozilla Persona
javascript include in your document and the needed mechanism to
trigger the POST to python-social-auth:

       Mozilla Persona

       $(function () {
           $('#persona').click(function (e) {
               e.preventDefault();
               var self = $(this);

               navigator.id.get(function (assertion) {
                   if (assertion) {
                       self.parent('form')
                               .find('input[type=hidden]')
                                   .attr('value', assertion)
                                   .end()
                               .submit();
                   } else {
                       alert('Some error occurred');
                   }
               });
           });
       });
   
