diff options
author | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2019-07-04 09:34:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-04 09:34:36 +0200 |
commit | 4112c2acb4b55b4dff679e83dc645e072e65ca65 (patch) | |
tree | 409c39dd1b0edb7e7e8de7cd487da754aa25a2bc /oauthlib/oauth2/rfc6749/endpoints/introspect.py | |
parent | 588abb50010d434c0de5ad9c479d666b7b6ab0bd (diff) | |
parent | d7b90fc841694f126ec63500ea8f74330c4672eb (diff) | |
download | oauthlib-4112c2acb4b55b4dff679e83dc645e072e65ca65.tar.gz |
Merge branch 'master' into oidc-userinfo
Diffstat (limited to 'oauthlib/oauth2/rfc6749/endpoints/introspect.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/endpoints/introspect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oauthlib/oauth2/rfc6749/endpoints/introspect.py b/oauthlib/oauth2/rfc6749/endpoints/introspect.py index 47022fd..4accbdc 100644 --- a/oauthlib/oauth2/rfc6749/endpoints/introspect.py +++ b/oauthlib/oauth2/rfc6749/endpoints/introspect.py @@ -39,6 +39,7 @@ class IntrospectEndpoint(BaseEndpoint): """ valid_token_types = ('access_token', 'refresh_token') + valid_request_methods = ('POST',) def __init__(self, request_validator, supported_token_types=None): BaseEndpoint.__init__(self) @@ -117,6 +118,8 @@ class IntrospectEndpoint(BaseEndpoint): .. _`section 1.5`: http://tools.ietf.org/html/rfc6749#section-1.5 .. _`RFC6749`: http://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) |