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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sso-nebus
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Python клиент для взаимодействия с MS Auth Service API
5
5
  License: LICENSE
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "sso-nebus"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "Python клиент для взаимодействия с MS Auth Service API"
5
5
  authors = [
6
6
  {name = "Артем Костюченко",email = "kostyuchenko.work@gmail.com"}
@@ -59,7 +59,7 @@ class ServiceClient(BaseClient):
59
59
  if scope:
60
60
  form_data["scope"] = scope
61
61
 
62
- data = await self.post("auth/token", form_data=form_data)
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("auth/me", access_token=access_token)
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