square-authentication 4.3.0__py3-none-any.whl → 4.5.0__py3-none-any.whl
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.
- square_authentication/routes/core.py +3 -1
- {square_authentication-4.3.0.dist-info → square_authentication-4.5.0.dist-info}/METADATA +14 -1
- {square_authentication-4.3.0.dist-info → square_authentication-4.5.0.dist-info}/RECORD +5 -5
- {square_authentication-4.3.0.dist-info → square_authentication-4.5.0.dist-info}/WHEEL +0 -0
- {square_authentication-4.3.0.dist-info → square_authentication-4.5.0.dist-info}/top_level.txt +0 -0
@@ -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
|
+
Version: 4.5.0
|
4
4
|
Summary: authentication layer for my personal server.
|
5
5
|
Home-page: https://github.com/thepmsquare/square_authentication
|
6
6
|
Author: thePmSquare
|
@@ -24,6 +24,8 @@ Requires-Dist: square-commons>=1.0.0
|
|
24
24
|
Requires-Dist: square-logger>=1.0.0
|
25
25
|
Requires-Dist: square-database-helper>=2.0.0
|
26
26
|
Requires-Dist: square-database-structure>=1.0.0
|
27
|
+
Requires-Dist: pytest>=8.0.0
|
28
|
+
Requires-Dist: httpx>=0.27.2
|
27
29
|
|
28
30
|
# square_authentication
|
29
31
|
|
@@ -43,6 +45,17 @@ pip install square_authentication
|
|
43
45
|
|
44
46
|
## changelog
|
45
47
|
|
48
|
+
### v4.5.0
|
49
|
+
|
50
|
+
- add pytest dependency and dummy test.
|
51
|
+
- add https dependency.
|
52
|
+
- github actions for CI/CD for testing and auto build and push.
|
53
|
+
|
54
|
+
### v4.4.0
|
55
|
+
|
56
|
+
- core
|
57
|
+
- add refresh_token_expiry_time in register_username_v0, login_username_v0.
|
58
|
+
|
46
59
|
### v4.3.0
|
47
60
|
|
48
61
|
- set allow_credentials=True.
|
@@ -6,12 +6,12 @@ square_authentication/data/config.ini,sha256=_740RvKpL5W2bUDGwZ7ePwuP-mAasr5cXXB
|
|
6
6
|
square_authentication/pydantic_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
square_authentication/pydantic_models/core.py,sha256=D4Q76oBl9wTDe7DMq96Bryk6a0GpuZStoU4w_KXkAd0,548
|
8
8
|
square_authentication/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
square_authentication/routes/core.py,sha256
|
9
|
+
square_authentication/routes/core.py,sha256=F-FO0EJAhZenKrJxd4NeIvGazC8t_3wKX2T8bZwiza0,48736
|
10
10
|
square_authentication/routes/utility.py,sha256=ocLWj39JbKVOxgyTsM0xBUgTpHFmKIvvaT3UnjFvuOY,1783
|
11
11
|
square_authentication/utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
12
12
|
square_authentication/utils/encryption.py,sha256=T6BShoUr_xeGpbfPgTK-GxTlXPwcjwU4c4KW7KPzrF8,1865
|
13
13
|
square_authentication/utils/token.py,sha256=Y_arg5LegX-aprMj9YweUK8jjNZLGDjLUGgxbUA12w4,560
|
14
|
-
square_authentication-4.
|
15
|
-
square_authentication-4.
|
16
|
-
square_authentication-4.
|
17
|
-
square_authentication-4.
|
14
|
+
square_authentication-4.5.0.dist-info/METADATA,sha256=6ZcYlKg_ccCvjzezgPYNTPI60j9aehjhD8rhKw_gt_4,3472
|
15
|
+
square_authentication-4.5.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
16
|
+
square_authentication-4.5.0.dist-info/top_level.txt,sha256=wDssVJIl9KIEJPj5rR3rv4uRI7yCndMBrvHd_6BGXQA,22
|
17
|
+
square_authentication-4.5.0.dist-info/RECORD,,
|
File without changes
|
{square_authentication-4.3.0.dist-info → square_authentication-4.5.0.dist-info}/top_level.txt
RENAMED
File without changes
|