@app.route('/login', methods=['GET', 'POST'])
@oid.loginhandler
def login():
    # if we are already logged in, go back to were we came from
    if g.user is not None:
        return redirect(oid.get_next_url())
    if request.method == 'POST':
        openid = request.form.get('openid')
        if openid:
            return oid.try_login(openid, ask_for=['email', 'fullname',
                                                  'nickname'])
    return render_template('login.html', next=oid.get_next_url(),
                           error=oid.fetch_error())
Find a single capability
dataset/ETHPy150Open ib-lundgren/flask-oauthprovider/examples/mongo_demoprovider/login.py/login--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/telemetry/v2/_proxy.py/Proxy.find_capability