sso-nebus 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/PKG-INFO +1 -1
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/pyproject.toml +1 -1
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/service_client.py +2 -2
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/LICENSE +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/README.md +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/__init__.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/base.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/exceptions.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/exmples/example_admin.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/exmples/example_service.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/exmples/example_user.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/models.py +0 -0
- {sso_nebus-0.1.2 → sso_nebus-0.1.3}/sso_nebus/user_client.py +0 -0
|
@@ -59,7 +59,7 @@ class ServiceClient(BaseClient):
|
|
|
59
59
|
if scope:
|
|
60
60
|
form_data["scope"] = scope
|
|
61
61
|
|
|
62
|
-
data = await self.post("
|
|
62
|
+
data = await self.post("token", form_data=form_data)
|
|
63
63
|
token_response = TokenResponse(**data)
|
|
64
64
|
|
|
65
65
|
# Сохраняем токен
|
|
@@ -83,7 +83,7 @@ class ServiceClient(BaseClient):
|
|
|
83
83
|
raise TokenError(
|
|
84
84
|
"Access token не найден. Вызовите get_access_token() сначала.")
|
|
85
85
|
|
|
86
|
-
data = await self.get("
|
|
86
|
+
data = await self.get("me", access_token=access_token)
|
|
87
87
|
return UserInfo(**data)
|
|
88
88
|
|
|
89
89
|
def set_access_token(self, access_token: str):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|