Esempio n. 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"))
Esempio n. 2
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"))
Esempio n. 3
0
def oauth_error_response(e):
    return current_app.response_class("OAuth error. %s" % e.message, status=401, headers=build_authenticate_header(realm=App.realm))