summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2018-12-11 10:17:02 +0100
committerGitHub <noreply@github.com>2018-12-11 10:17:02 +0100
commita4dd9cb805902cb71db658354dbe294cbb4cdbde (patch)
tree802064a6fa1577805bf7f3d2284553fa15fa0a04 /oauthlib/oauth2/rfc6749
parentcf3cf407be774405f66188219eb1653c723e294b (diff)
parent51c927b0641adcef6e5944c9a67ba1d7edc2eb68 (diff)
downloadoauthlib-a4dd9cb805902cb71db658354dbe294cbb4cdbde.tar.gz
Merge branch 'master' into 601-pkce-support
Diffstat (limited to 'oauthlib/oauth2/rfc6749')
-rw-r--r--oauthlib/oauth2/rfc6749/errors.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/errors.py b/oauthlib/oauth2/rfc6749/errors.py
index f7fac5c..bee9e77 100644
--- a/oauthlib/oauth2/rfc6749/errors.py
+++ b/oauthlib/oauth2/rfc6749/errors.py
@@ -231,9 +231,11 @@ class UnsupportedCodeChallengeMethodError(InvalidRequestError):
class InvalidScopeError(OAuth2Error):
"""
The requested scope is invalid, unknown, or malformed.
+
+ https://tools.ietf.org/html/rfc6749#section-5.2
"""
error = 'invalid_scope'
- status_code = 401
+ status_code = 400
class ServerError(OAuth2Error):