MCPcopy Create free account
hub / github.com/oauthlib/oauthlib / post

Method post

examples/device_code_flow.py:256–260  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

254 # Example of how token endpoint could handle the token creation depending on
255 # the grant type during a POST to /token.
256 def post(self, request):
257 params = request.POST
258 if params.get("grant_type") == "urn:ietf:params:oauth:grant-type:device_code":
259 return self.device_flow_token_response(request, params["device_code"])
260 return self.default_flow_token_response(request)

Callers

nothing calls this directly

Calls 3

getMethod · 0.80

Tested by

no test coverage detected