Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)
This tries to login with the given identity URL.  This function
must be called from the login_handler.  The `ask_for` and 
`ask_for_optional`parameter can be a set of values to be asked
from the openid provider, where keys in `ask_for` are marked as
required, and keys in `ask_for_optional` are marked as optional.

The following strings can be used in the `ask_for` and
`ask_for_optional` parameters:
``aim``, ``blog``, ``country``, ``dob`` (date of birth), ``email``,
``fullname``, ``gender``, ``icq``, ``image``, ``jabber``, ``language``,(more...)

src/f/l/Flask-OpenID-1.2.1/example/example.py   Flask-OpenID(Download)
        if openid:
            pape_req = pape.Request([])
            return oid.try_login(openid, ask_for=['email', 'nickname'],
                                         ask_for_optional=['fullname'],
                                         extensions=[pape_req])

src/f/l/flask-openid-HEAD/example/example.py   flask-openid(Download)
        if openid:
            pape_req = pape.Request([])
            return oid.try_login(openid, ask_for=['email', 'nickname'],
                                         ask_for_optional=['fullname'],
                                         extensions=[pape_req])

src/f/l/flask-oauthprovider-HEAD/examples/mongo_demoprovider/login.py   flask-oauthprovider(Download)
        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(),

src/c/n/cnucnuweb-HEAD/cnucnuweb/app.py   cnucnuweb(Download)
    if openid_server:
        return OID.try_login(
            openid_server, ask_for=['email', 'fullname', 'nickname'])
 
    return flask.render_template(
    OID.store_factory = lambda: None
    return OID.try_login(
        APP.config['CNUCNU_WEB_FEDORA_OPENID'],
        ask_for=['email', 'nickname'],
        ask_for_optional=['fullname'])
    OID.store_factory = None
    return OID.try_login(
        "https://www.google.com/accounts/o8/id",
        ask_for=['email', 'fullname'])
 
    OID.store_factory = None
    return OID.try_login(
        "https://me.yahoo.com/",
        ask_for=['email', 'fullname'])
 

src/f/m/fmn.web-0.2.4/fmn/web/app.py   fmn.web(Download)
    if openid_server:
        return oid.try_login(
            openid_server, ask_for=['email', 'fullname', 'nickname'])
 
    return flask.render_template(
def fedora_login():
    default = flask.url_for('profile_redirect')
    next_url = flask.request.args.get('next', default)
    return oid.try_login(
        app.config['FMN_FEDORA_OPENID'],
def google_login():
    default = flask.url_for('index')
    next_url = flask.request.args.get('next', default)
    return oid.try_login(
        "https://www.google.com/accounts/o8/id",
def yahoo_login():
    default = flask.url_for('index')
    next_url = flask.request.args.get('next', default)
    return oid.try_login(
        "https://me.yahoo.com/",

src/p/r/prat-HEAD/chat/views/auth.py   prat(Download)
    openid = request.form.get('openid_identifier')
    if openid:
      return oid.try_login(openid, ask_for=['email', 'fullname', 'nickname'])
  return render_template('login.htmljinja',
                         next=next_url,

src/a/g/agenda-politicieni-HEAD/auth.py   agenda-politicieni(Download)
def login():
    if flask.g.user is not None:
        return flask.redirect(oid.get_next_url())
 
    return oid.try_login(COMMON_PROVIDERS['google'],

src/t/o/torabot-HEAD/torabot/frontend/main/openid.py   torabot(Download)
                request.base_url = 'http://%s/login' % domain
            return oid.try_login(
                openid,
                ask_for=['email', 'fullname', 'nickname']
            )

src/t/o/TogetherVideo-0.1.0/tv/auth/openid.py   TogetherVideo(Download)
def login():
    if g.user is not None:
        return redirect(url_for('index'))
    openid = app.config['OPENID_FORCED_PROVIDER']
    return oid.try_login(openid, ask_for=['fullname',

src/t/r/TrebuchetRicochet-0.2/ricochet/auth/openid.py   TrebuchetRicochet(Download)
def login():
    if g.user is not None:
        return redirect(url_for('index'))
    openid = app.config['OPENID_FORCED_PROVIDER']
    return oid.try_login(openid, ask_for=['fullname',

  1 | 2  Next