square-authentication 8.0.0__tar.gz → 8.0.2__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.
- {square_authentication-8.0.0 → square_authentication-8.0.2}/PKG-INFO +13 -1
- {square_authentication-8.0.0 → square_authentication-8.0.2}/README.md +12 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/setup.py +1 -1
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/core.py +8 -2
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication.egg-info/PKG-INFO +13 -1
- {square_authentication-8.0.0 → square_authentication-8.0.2}/pyproject.toml +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/setup.cfg +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/__init__.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/configuration.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/data/config.sample.ini +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/data/config.testing.sample.ini +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/main.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/messages.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/pydantic_models/__init__.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/pydantic_models/core.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/pydantic_models/profile.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/__init__.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/profile.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/utility.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/__init__.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/core.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/encryption.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/token.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication.egg-info/SOURCES.txt +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication.egg-info/dependency_links.txt +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication.egg-info/requires.txt +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication.egg-info/top_level.txt +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/tests/test_1.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/tests/test_delete_user.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/tests/test_login.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/tests/test_update_profile.py +0 -0
- {square_authentication-8.0.0 → square_authentication-8.0.2}/tests/test_username.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: square_authentication
|
3
|
-
Version: 8.0.
|
3
|
+
Version: 8.0.2
|
4
4
|
Summary: authentication layer for my personal server.
|
5
5
|
Home-page: https://github.com/thepmsquare/square_authentication
|
6
6
|
Author: thePmSquare
|
@@ -54,6 +54,18 @@ pip install square_authentication
|
|
54
54
|
|
55
55
|
## changelog
|
56
56
|
|
57
|
+
### v8.0.2
|
58
|
+
|
59
|
+
- core
|
60
|
+
- add refresh_token_expiry_time in output for reset_password_and_login_using_backup_code_v0 and
|
61
|
+
reset_password_and_login_using_reset_email_code_v0.
|
62
|
+
|
63
|
+
### v8.0.1
|
64
|
+
|
65
|
+
- core
|
66
|
+
- add make recovery_methods_to_add and recovery_methods_to_remove parameters optional in
|
67
|
+
update_user_recovery_methods_v0.
|
68
|
+
|
57
69
|
### v8.0.0
|
58
70
|
|
59
71
|
- env
|
@@ -16,6 +16,18 @@ pip install square_authentication
|
|
16
16
|
|
17
17
|
## changelog
|
18
18
|
|
19
|
+
### v8.0.2
|
20
|
+
|
21
|
+
- core
|
22
|
+
- add refresh_token_expiry_time in output for reset_password_and_login_using_backup_code_v0 and
|
23
|
+
reset_password_and_login_using_reset_email_code_v0.
|
24
|
+
|
25
|
+
### v8.0.1
|
26
|
+
|
27
|
+
- core
|
28
|
+
- add make recovery_methods_to_add and recovery_methods_to_remove parameters optional in
|
29
|
+
update_user_recovery_methods_v0.
|
30
|
+
|
19
31
|
### v8.0.0
|
20
32
|
|
21
33
|
- env
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/core.py
RENAMED
@@ -2075,9 +2075,13 @@ async def validate_and_get_payload_from_token_v0(
|
|
2075
2075
|
@global_object_square_logger.auto_logger()
|
2076
2076
|
async def update_user_recovery_methods_v0(
|
2077
2077
|
access_token: Annotated[str, Header()],
|
2078
|
-
recovery_methods_to_add: List[RecoveryMethodEnum],
|
2079
|
-
recovery_methods_to_remove: List[RecoveryMethodEnum],
|
2078
|
+
recovery_methods_to_add: List[RecoveryMethodEnum] = None,
|
2079
|
+
recovery_methods_to_remove: List[RecoveryMethodEnum] = None,
|
2080
2080
|
):
|
2081
|
+
if recovery_methods_to_add is None:
|
2082
|
+
recovery_methods_to_add = []
|
2083
|
+
if recovery_methods_to_remove is None:
|
2084
|
+
recovery_methods_to_remove = []
|
2081
2085
|
try:
|
2082
2086
|
|
2083
2087
|
"""
|
@@ -2691,6 +2695,7 @@ async def reset_password_and_login_using_backup_code_v0(
|
|
2691
2695
|
"user_id": user_id,
|
2692
2696
|
"access_token": local_str_access_token,
|
2693
2697
|
"refresh_token": local_str_refresh_token,
|
2698
|
+
"refresh_token_expiry_time": local_object_refresh_token_expiry_time.isoformat(),
|
2694
2699
|
}
|
2695
2700
|
},
|
2696
2701
|
)
|
@@ -3223,6 +3228,7 @@ async def reset_password_and_login_using_reset_email_code_v0(
|
|
3223
3228
|
"user_id": user_id,
|
3224
3229
|
"access_token": local_str_access_token,
|
3225
3230
|
"refresh_token": local_str_refresh_token,
|
3231
|
+
"refresh_token_expiry_time": local_object_refresh_token_expiry_time.isoformat(),
|
3226
3232
|
}
|
3227
3233
|
},
|
3228
3234
|
)
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: square_authentication
|
3
|
-
Version: 8.0.
|
3
|
+
Version: 8.0.2
|
4
4
|
Summary: authentication layer for my personal server.
|
5
5
|
Home-page: https://github.com/thepmsquare/square_authentication
|
6
6
|
Author: thePmSquare
|
@@ -54,6 +54,18 @@ pip install square_authentication
|
|
54
54
|
|
55
55
|
## changelog
|
56
56
|
|
57
|
+
### v8.0.2
|
58
|
+
|
59
|
+
- core
|
60
|
+
- add refresh_token_expiry_time in output for reset_password_and_login_using_backup_code_v0 and
|
61
|
+
reset_password_and_login_using_reset_email_code_v0.
|
62
|
+
|
63
|
+
### v8.0.1
|
64
|
+
|
65
|
+
- core
|
66
|
+
- add make recovery_methods_to_add and recovery_methods_to_remove parameters optional in
|
67
|
+
update_user_recovery_methods_v0.
|
68
|
+
|
57
69
|
### v8.0.0
|
58
70
|
|
59
71
|
- env
|
File without changes
|
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/__init__.py
RENAMED
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/configuration.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/messages.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/__init__.py
RENAMED
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/profile.py
RENAMED
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/routes/utility.py
RENAMED
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/__init__.py
RENAMED
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/core.py
RENAMED
File without changes
|
File without changes
|
{square_authentication-8.0.0 → square_authentication-8.0.2}/square_authentication/utils/token.py
RENAMED
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
|