Configure login authentification

    Uses `Flask-Login <https://flask-login.readthedocs.org>`_

def configure_login(app):
    """Configure login authentification

    Uses `Flask-Login <https://flask-login.readthedocs.org>`_
    """
    from heman.auth import login_manager, login
    login_manager.init_app(app)

    @app.teardown_request
    def force_logout(*args, **kwargs):
        login.logout_user()