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