diff options
author | John Nduli | 2024-07-31 10:54:42 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-02 15:45:48 -0500 |
commit | f540322213fc7949695283a82eb8513c4a8a7f3e (patch) | |
tree | dabe0249a2697cb59ff9ba9fd841e6916a7f92ad /gn_auth/auth/authentication/oauth2/grants/password_grant.py | |
parent | 13c14ade387e78e290267c055f24b035c9e2868c (diff) | |
download | gn-auth-f540322213fc7949695283a82eb8513c4a8a7f3e.tar.gz |
fix: use json to support parsing oauth2 requests
The local sign in request used by gn2 uses json. However, the default
parsing assumes form data, see:
- https://github.com/lepture/authlib/blob/v1.2.0/authlib/integrations/flask_oauth2/authorization_server.py#L72
- https://github.com/lepture/authlib/blob/v1.2.0/authlib/integrations/flask_helpers.py#L5
We create a custom Authorization server that defaults to `use_json=True`
when creating the oauth request object
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/grants/password_grant.py')
0 files changed, 0 insertions, 0 deletions