summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/endpoints/revocation.py
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2019-07-04 09:34:36 +0200
committerGitHub <noreply@github.com>2019-07-04 09:34:36 +0200
commit4112c2acb4b55b4dff679e83dc645e072e65ca65 (patch)
tree409c39dd1b0edb7e7e8de7cd487da754aa25a2bc /oauthlib/oauth2/rfc6749/endpoints/revocation.py
parent588abb50010d434c0de5ad9c479d666b7b6ab0bd (diff)
parentd7b90fc841694f126ec63500ea8f74330c4672eb (diff)
downloadoauthlib-4112c2acb4b55b4dff679e83dc645e072e65ca65.tar.gz
Merge branch 'master' into oidc-userinfo
Diffstat (limited to 'oauthlib/oauth2/rfc6749/endpoints/revocation.py')
-rw-r--r--oauthlib/oauth2/rfc6749/endpoints/revocation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/oauthlib/oauth2/rfc6749/endpoints/revocation.py b/oauthlib/oauth2/rfc6749/endpoints/revocation.py
index fda3f30..1fabd03 100644
--- a/oauthlib/oauth2/rfc6749/endpoints/revocation.py
+++ b/oauthlib/oauth2/rfc6749/endpoints/revocation.py
@@ -28,6 +28,7 @@ class RevocationEndpoint(BaseEndpoint):
"""
valid_token_types = ('access_token', 'refresh_token')
+ valid_request_methods = ('POST',)
def __init__(self, request_validator, supported_token_types=None,
enable_jsonp=False):
@@ -121,6 +122,8 @@ class RevocationEndpoint(BaseEndpoint):
.. _`Section 4.1.2`: https://tools.ietf.org/html/draft-ietf-oauth-revocation-11#section-4.1.2
.. _`RFC6749`: https://tools.ietf.org/html/rfc6749
"""
+ self._raise_on_bad_method(request)
+ self._raise_on_bad_post_request(request)
self._raise_on_missing_token(request)
self._raise_on_invalid_client(request)
self._raise_on_unsupported_token(request)