Beispiel #1
0
def get_server():
    global openid_server_instance
    if openid_server_instance is None:
        openid_server_instance = openid_server(
            OpenIDStore(),
            op_endpoint='%s/openid/' % APP.config['GLOBAL']['url_root'])
    return openid_server_instance
Beispiel #2
0
def get_server():
    global openid_server_instance
    if openid_server_instance is None:
        openid_server_instance = openid_server(
            OpenIDStore(),
            op_endpoint='%s/openid/' % APP.config['GLOBAL']['url_root'])
    return openid_server_instance
Beispiel #3
0
def get_server():
    global openid_server_instance
    if openid_server_instance is None:
        openid_server_instance = openid_server(
            FedOAuthOpenIDStore(), op_endpoint=app.config['WEBSITE_ROOT'])
    return openid_server_instance
Beispiel #4
0
def get_server():
    ctx = stack.top
    if not hasattr(ctx, 'openid_server'):
        ctx.openid_server = openid_server(
            FASOpenIDStore(), op_endpoint=app.config['OPENID_ENDPOINT'])
    return ctx.openid_server
Beispiel #5
0
def get_server():
    if not hasattr(g, 'openid_server'):
        g.openid_server = openid_server(FASOpenIDStore(), op_endpoint=app.config['OPENID_ENDPOINT'])
    return g.openid_server