square-authentication 5.2.0__tar.gz → 6.0.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 (24) hide show
  1. {square_authentication-5.2.0 → square_authentication-6.0.0}/PKG-INFO +5 -1
  2. {square_authentication-5.2.0 → square_authentication-6.0.0}/README.md +4 -0
  3. {square_authentication-5.2.0 → square_authentication-6.0.0}/setup.py +1 -1
  4. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/routes/core.py +4 -5
  5. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication.egg-info/PKG-INFO +5 -1
  6. {square_authentication-5.2.0 → square_authentication-6.0.0}/setup.cfg +0 -0
  7. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/__init__.py +0 -0
  8. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/configuration.py +0 -0
  9. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/data/config.ini +0 -0
  10. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/main.py +0 -0
  11. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/messages.py +0 -0
  12. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/pydantic_models/__init__.py +0 -0
  13. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/pydantic_models/core.py +0 -0
  14. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/routes/__init__.py +0 -0
  15. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/routes/profile.py +0 -0
  16. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/routes/utility.py +0 -0
  17. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/utils/__init__.py +0 -0
  18. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/utils/encryption.py +0 -0
  19. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication/utils/token.py +0 -0
  20. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication.egg-info/SOURCES.txt +0 -0
  21. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication.egg-info/dependency_links.txt +0 -0
  22. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication.egg-info/requires.txt +0 -0
  23. {square_authentication-5.2.0 → square_authentication-6.0.0}/square_authentication.egg-info/top_level.txt +0 -0
  24. {square_authentication-5.2.0 → square_authentication-6.0.0}/tests/test_1.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: square_authentication
3
- Version: 5.2.0
3
+ Version: 6.0.0
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -53,6 +53,10 @@ pip install square_authentication
53
53
 
54
54
  ## changelog
55
55
 
56
+ ### v6.0.0
57
+
58
+ - add profile details in get_user_details_v0 instead of credentials keyword.
59
+
56
60
  ### v5.2.0
57
61
 
58
62
  - add temp folder to .gitignore.
@@ -16,6 +16,10 @@ pip install square_authentication
16
16
 
17
17
  ## changelog
18
18
 
19
+ ### v6.0.0
20
+
21
+ - add profile details in get_user_details_v0 instead of credentials keyword.
22
+
19
23
  ### v5.2.0
20
24
 
21
25
  - add temp folder to .gitignore.
@@ -4,7 +4,7 @@ package_name = "square_authentication"
4
4
 
5
5
  setup(
6
6
  name=package_name,
7
- version="5.2.0",
7
+ version="6.0.0",
8
8
  packages=find_packages(),
9
9
  package_data={
10
10
  package_name: ["data/*"],
@@ -1,3 +1,4 @@
1
+ import copy
1
2
  from datetime import datetime, timedelta, timezone
2
3
  from typing import Annotated, List
3
4
 
@@ -302,16 +303,14 @@ async def get_user_details_v0(
302
303
  ),
303
304
  )["data"]["main"]
304
305
  )
306
+ user_profile = copy.deepcopy(local_list_response_user_profile[0])
307
+ del user_profile[UserProfile.user_id.name]
305
308
  """
306
309
  return value
307
310
  """
308
311
  return_this = {
309
312
  "user_id": user_id,
310
- "credentials": {
311
- "username": local_list_response_user_profile[0][
312
- UserProfile.user_profile_username.name
313
- ],
314
- },
313
+ "profile": user_profile,
315
314
  "apps": [
316
315
  y[App.app_name.name]
317
316
  for y in local_list_app
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: square_authentication
3
- Version: 5.2.0
3
+ Version: 6.0.0
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -53,6 +53,10 @@ pip install square_authentication
53
53
 
54
54
  ## changelog
55
55
 
56
+ ### v6.0.0
57
+
58
+ - add profile details in get_user_details_v0 instead of credentials keyword.
59
+
56
60
  ### v5.2.0
57
61
 
58
62
  - add temp folder to .gitignore.