API - add route to get access token

This commit is contained in:
Sam
2022-05-27 14:08:07 +02:00
parent 249c975810
commit 64b813a44b
4 changed files with 199 additions and 2 deletions

View File

@ -65,3 +65,8 @@ def authorize(auth_user: User) -> Response:
return authorization_server.create_authorization_response(
grant_user=auth_user
)
@oauth_blueprint.route('/oauth/token', methods=['POST'])
def issue_token() -> Response:
return authorization_server.create_token_response()