MCPcopy Create free account
hub / github.com/authlib/authlib / check_params

Method check_params

authlib/oauth2/rfc7009/revocation.py:37–43  ·  view source on GitHub ↗
(self, request, client)

Source from the content-addressed store, hash-verified

35 return token
36
37 def check_params(self, request, client):
38 if "token" not in request.form:
39 raise InvalidRequestError()
40
41 hint = request.form.get("token_type_hint")
42 if hint and hint not in self.SUPPORTED_TOKEN_TYPES:
43 raise UnsupportedTokenTypeError()
44
45 def create_endpoint_response(self, request):
46 """Validate revocation request and create the response for revocation.

Callers 3

authenticate_tokenMethod · 0.95
authenticate_tokenMethod · 0.45
authenticate_tokenMethod · 0.45

Calls 3

InvalidRequestErrorClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected