diff options
Diffstat (limited to 'gn3/auth/authentication/oauth2/server.py')
-rw-r--r-- | gn3/auth/authentication/oauth2/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/auth/authentication/oauth2/server.py b/gn3/auth/authentication/oauth2/server.py index 960625d..73c9340 100644 --- a/gn3/auth/authentication/oauth2/server.py +++ b/gn3/auth/authentication/oauth2/server.py @@ -36,7 +36,7 @@ def create_save_token_func(token_model: type) -> Callable: save_token( conn, token_model( token_id=uuid.uuid4(), client=request.client, - user=request.client.user, + user=request.user, **{ "refresh_token": None, "revoked": False, "issued_at": datetime.datetime.now(), |