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:

<!-- Include BrowserID JavaScript -->
<script src="" type="text/javascript"></script>

<!-- Define a form to send the POST data -->
<form method="post" action="/complete/persona/">
    <input type="hidden" name="assertion" value="" />
    <a rel="nofollow" id="persona" href="#">Mozilla Persona</a>

<!-- Setup click handler that retieves Persona assertion code and sends POST data -->
<script type="text/javascript">
    $(function () {
        $('#persona').click(function (e) {
            var self = $(this);

   (assertion) {
                if (assertion) {
                                .attr('value', assertion)
                } else {
                    alert('Some error occurred');