From da57ac8cb3daf5d14841c0c3b6d0261a49c69504 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 21 Jan 2023 03:16:05 +0300 Subject: auth: Fix saving of scope values. Add scope items. --- gn3/auth/authentication/oauth2/models/oauth2token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/auth/authentication/oauth2') 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, -- cgit v1.2.3