{% extends "layout.html" %} {% block title %}Welcome{% endblock %} {% block body %}

Welcome

This is a small example application that shows how to integrate Mozilla's persona signin service into a Flask application.

The advantage of persona over your own login system is that the password is managed outside of your application and you get a verified mail address as primary identifier for your user.

In this example nothing is actually stored on the server, it just takes over the email address from the persona verifier and stores it in a session. {% if g.user %}

You are now logged in as {{ g.user }} {% else %}

To sign in click the sign in button above. {% endif %} {% endblock %}