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
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
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
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