コード例 #1
0
def oauth_error_response(e):
    logging.error("OAuth error. %s" % e.message)
    logging.exception(e)
    return current_app.response_class(
        "OAuth error. %s" % e.message,
        status=401,
        headers=build_authenticate_header(realm="http://www.khanacademy.org"))
コード例 #2
0
ファイル: auth_util.py プロジェクト: PaulWagener/khan-website
def oauth_error_response(e):
    logging.error("OAuth error. %s" % e.message)
    logging.exception(e)
    return current_app.response_class("OAuth error. %s" % e.message, status=401, headers=build_authenticate_header(realm="http://www.khanacademy.org"))
コード例 #3
0
ファイル: auth_util.py プロジェクト: johnfelipe/server
def oauth_error_response(e):
    return current_app.response_class("OAuth error. %s" % e.message, status=401, headers=build_authenticate_header(realm=App.realm))