From a7144244d299a39033668dbca396721acdd78da6 Mon Sep 17 00:00:00 2001 From: semen603089 Date: Sat, 6 Apr 2024 20:01:09 +0300 Subject: [PATCH 1/3] user_scopes add --- auth_lib/aiomethods.py | 1 + 1 file changed, 1 insertion(+) diff --git a/auth_lib/aiomethods.py b/auth_lib/aiomethods.py index 6b896d5..b079869 100644 --- a/auth_lib/aiomethods.py +++ b/auth_lib/aiomethods.py @@ -38,6 +38,7 @@ async def check_token(self, token: str) -> dict[str, Any] | None: "info": [ "indirect_groups", "session_scopes", + "user_scopes" ] }, ) as r: From 6e29cdeac5f99eec978e36c6060d1b4a42a136ae Mon Sep 17 00:00:00 2001 From: semen603089 Date: Sat, 6 Apr 2024 20:01:53 +0300 Subject: [PATCH 2/3] version up --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 82f7f5b..e60b586 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name="auth_lib_profcomff", - version="2023.08.06", + version="2024.04.06", author="Semyon Grigoriev", long_description=readme, long_description_content_type="text/markdown", From b3fe74e8282969bbff7225b9c36bbc33c56323a2 Mon Sep 17 00:00:00 2001 From: semen603089 Date: Sat, 6 Apr 2024 20:51:10 +0300 Subject: [PATCH 3/3] black --- auth_lib/aiomethods.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/auth_lib/aiomethods.py b/auth_lib/aiomethods.py index b079869..b698a15 100644 --- a/auth_lib/aiomethods.py +++ b/auth_lib/aiomethods.py @@ -34,13 +34,7 @@ async def check_token(self, token: str) -> dict[str, Any] | None: "GET", urljoin(self.auth_url, "me"), headers={"Authorization": token}, - params={ - "info": [ - "indirect_groups", - "session_scopes", - "user_scopes" - ] - }, + params={"info": ["indirect_groups", "session_scopes", "user_scopes"]}, ) as r: user_session = await r.json() if r.ok: