square-authentication 4.3.0__tar.gz → 4.4.0__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.
Files changed (22) hide show
  1. {square_authentication-4.3.0 → square_authentication-4.4.0}/PKG-INFO +6 -1
  2. {square_authentication-4.3.0 → square_authentication-4.4.0}/README.md +5 -0
  3. {square_authentication-4.3.0 → square_authentication-4.4.0}/setup.py +1 -1
  4. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/routes/core.py +3 -1
  5. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication.egg-info/PKG-INFO +6 -1
  6. {square_authentication-4.3.0 → square_authentication-4.4.0}/setup.cfg +0 -0
  7. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/__init__.py +0 -0
  8. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/configuration.py +0 -0
  9. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/data/config.ini +0 -0
  10. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/main.py +0 -0
  11. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/messages.py +0 -0
  12. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/pydantic_models/__init__.py +0 -0
  13. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/pydantic_models/core.py +0 -0
  14. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/routes/__init__.py +0 -0
  15. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/routes/utility.py +0 -0
  16. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/utils/__init__.py +0 -0
  17. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/utils/encryption.py +0 -0
  18. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication/utils/token.py +0 -0
  19. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication.egg-info/SOURCES.txt +0 -0
  20. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication.egg-info/dependency_links.txt +0 -0
  21. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication.egg-info/requires.txt +0 -0
  22. {square_authentication-4.3.0 → square_authentication-4.4.0}/square_authentication.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square_authentication
3
- Version: 4.3.0
3
+ Version: 4.4.0
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -32,6 +32,11 @@ pip install square_authentication
32
32
 
33
33
  ## changelog
34
34
 
35
+ ### v4.4.0
36
+
37
+ - core
38
+ - add refresh_token_expiry_time in register_username_v0, login_username_v0.
39
+
35
40
  ### v4.3.0
36
41
 
37
42
  - set allow_credentials=True.
@@ -16,6 +16,11 @@ pip install square_authentication
16
16
 
17
17
  ## changelog
18
18
 
19
+ ### v4.4.0
20
+
21
+ - core
22
+ - add refresh_token_expiry_time in register_username_v0, login_username_v0.
23
+
19
24
  ### v4.3.0
20
25
 
21
26
  - set allow_credentials=True.
@@ -4,7 +4,7 @@ package_name = "square_authentication"
4
4
 
5
5
  setup(
6
6
  name=package_name,
7
- version="4.3.0",
7
+ version="4.4.0",
8
8
  packages=find_packages(),
9
9
  package_data={
10
10
  package_name: ["data/*"],
@@ -69,7 +69,7 @@ async def register_username_v0(
69
69
  local_str_user_id = None
70
70
  local_str_access_token = None
71
71
  local_str_refresh_token = None
72
-
72
+ local_object_refresh_token_expiry_time = None
73
73
  username = username.lower()
74
74
  try:
75
75
  """
@@ -203,6 +203,7 @@ async def register_username_v0(
203
203
  "app_id": app_id,
204
204
  "access_token": local_str_access_token,
205
205
  "refresh_token": local_str_refresh_token,
206
+ "refresh_token_expiry_time": local_object_refresh_token_expiry_time.isoformat(),
206
207
  },
207
208
  },
208
209
  )
@@ -664,6 +665,7 @@ async def login_username_v0(body: LoginUsernameV0):
664
665
  "user_id": local_str_user_id,
665
666
  "access_token": local_str_access_token,
666
667
  "refresh_token": local_str_refresh_token,
668
+ "refresh_token_expiry_time": local_object_refresh_token_expiry_time.isoformat(),
667
669
  }
668
670
  },
669
671
  message=messages["LOGIN_SUCCESSFUL"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square-authentication
3
- Version: 4.3.0
3
+ Version: 4.4.0
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -32,6 +32,11 @@ pip install square_authentication
32
32
 
33
33
  ## changelog
34
34
 
35
+ ### v4.4.0
36
+
37
+ - core
38
+ - add refresh_token_expiry_time in register_username_v0, login_username_v0.
39
+
35
40
  ### v4.3.0
36
41
 
37
42
  - set allow_credentials=True.