aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authentication/oauth2/models
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-01-21 03:16:05 +0300
committerFrederick Muriuki Muriithi2023-01-21 03:16:05 +0300
commitda57ac8cb3daf5d14841c0c3b6d0261a49c69504 (patch)
tree9f46bfb3d9e05fc6ac347f56c5a3583f752a1c19 /gn3/auth/authentication/oauth2/models
parentb7b743001eae170792c5f533757fa40d86a9788a (diff)
downloadgenenetwork3-da57ac8cb3daf5d14841c0c3b6d0261a49c69504.tar.gz
auth: Fix saving of scope values. Add scope items.
Diffstat (limited to 'gn3/auth/authentication/oauth2/models')
-rw-r--r--gn3/auth/authentication/oauth2/models/oauth2token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/auth/authentication/oauth2/models/oauth2token.py b/gn3/auth/authentication/oauth2/models/oauth2token.py
index 8b73e59..9495df4 100644
--- a/gn3/auth/authentication/oauth2/models/oauth2token.py
+++ b/gn3/auth/authentication/oauth2/models/oauth2token.py
@@ -120,7 +120,7 @@ def save_token(conn: db.DbConnection, token: OAuth2Token) -> None:
"token_type": token.token_type,
"access_token": token.access_token,
"refresh_token": token.refresh_token,
- "scope": token.get_scope(),
+ "scope": token.scope,
"revoked": 1 if token.revoked else 0,
"issued_at": int(token.issued_at.timestamp()),
"expires_in": token.expires_in,