authlib / example-oauth2-server

Example for OAuth 2 Server for Authlib.
https://authlib.org/
684 stars 285 forks source link

request to None in token endpoint #72

Closed quaxsze closed 4 years ago

quaxsze commented 4 years ago

In the Authorization server, the methodcreate_token_response called by the token endpoint processes a request object by has default request parameter set to None and nothing is passed to its call in the token endpoint in the routes file. How can it make a response token out of a none request body?

lepture commented 4 years ago

Because it is Flask. You can always: from flask import request.