From 86842bbb025898f63451135941061ef9a4cba3d1 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 6 May 2019 08:40:09 -0700 Subject: [PATCH] Add other OAUTH2 token errors (#915) --- src/var.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/var.py b/src/var.py index f072c957..bf040768 100644 --- a/src/var.py +++ b/src/var.py @@ -847,11 +847,15 @@ OAUTH2_TOKEN_ERRORS = [ 'access_denied', 'access_denied: Requested client not authorized', 'internal_failure: Backend Error', + 'internal_failure: None', + 'invalid_grant', 'invalid_grant: Bad Request', 'invalid_grant: Invalid email or User ID', 'invalid_grant: Not a valid email', + 'invalid_grant: Invalid JWT: No valid verifier found for issuer', 'invalid_request: Invalid impersonation prn email address', 'unauthorized_client: Client is unauthorized to retrieve access tokens using this method', + 'unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested', 'unauthorized_client: Unauthorized client or scope in request', ] #