def auth_onrequest(sender):
    backend = current_app.config['AUTH_BACKEND']

    try:
        auth_key = session['auth_key']
    except __HOLE__:
        return

    user = backend.load_user(auth_key)
    g.user = user
dataset/ETHPy150Open ericmoritz/flask-auth/flaskext/auth/__init__.py/auth_onrequest