square-authentication 5.1.2__tar.gz → 5.1.4__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-5.1.2 → square_authentication-5.1.4}/PKG-INFO +9 -1
- {square_authentication-5.1.2 → square_authentication-5.1.4}/README.md +8 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/setup.py +1 -1
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/routes/core.py +24 -2
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication.egg-info/PKG-INFO +9 -1
- {square_authentication-5.1.2 → square_authentication-5.1.4}/setup.cfg +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/__init__.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/configuration.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/data/config.ini +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/main.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/messages.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/pydantic_models/__init__.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/pydantic_models/core.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/routes/__init__.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/routes/utility.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/utils/__init__.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/utils/encryption.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/utils/token.py +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication.egg-info/SOURCES.txt +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication.egg-info/dependency_links.txt +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication.egg-info/requires.txt +0 -0
- {square_authentication-5.1.2 → square_authentication-5.1.4}/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: 5.1.
|
3
|
+
Version: 5.1.4
|
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,14 @@ pip install square_authentication
|
|
32
32
|
|
33
33
|
## changelog
|
34
34
|
|
35
|
+
### v5.1.4
|
36
|
+
|
37
|
+
- re bug fix v5.1.3
|
38
|
+
|
39
|
+
### v5.1.3
|
40
|
+
|
41
|
+
- bugfix in login_username/v0 (getting creds from correct table).
|
42
|
+
|
35
43
|
### v5.1.2
|
36
44
|
|
37
45
|
- bump square_database_structure>=2.3.1.
|
@@ -16,6 +16,14 @@ pip install square_authentication
|
|
16
16
|
|
17
17
|
## changelog
|
18
18
|
|
19
|
+
### v5.1.4
|
20
|
+
|
21
|
+
- re bug fix v5.1.3
|
22
|
+
|
23
|
+
### v5.1.3
|
24
|
+
|
25
|
+
- bugfix in login_username/v0 (getting creds from correct table).
|
26
|
+
|
19
27
|
### v5.1.2
|
20
28
|
|
21
29
|
- bump square_database_structure>=2.3.1.
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/routes/core.py
RENAMED
@@ -74,7 +74,6 @@ async def register_username_v0(
|
|
74
74
|
"""
|
75
75
|
validation
|
76
76
|
"""
|
77
|
-
|
78
77
|
# validation for username
|
79
78
|
local_list_response_user_creds = (
|
80
79
|
global_object_square_database_helper.get_rows_v0(
|
@@ -548,7 +547,7 @@ async def login_username_v0(body: LoginUsernameV0):
|
|
548
547
|
validation
|
549
548
|
"""
|
550
549
|
# validation for username
|
551
|
-
|
550
|
+
local_list_response_user_profile = (
|
552
551
|
global_object_square_database_helper.get_rows_v0(
|
553
552
|
database_name=global_string_database_name,
|
554
553
|
schema_name=global_string_schema_name,
|
@@ -562,6 +561,29 @@ async def login_username_v0(body: LoginUsernameV0):
|
|
562
561
|
),
|
563
562
|
)["data"]["main"]
|
564
563
|
)
|
564
|
+
if len(local_list_response_user_profile) != 1:
|
565
|
+
output_content = get_api_output_in_standard_format(
|
566
|
+
message=messages["INCORRECT_USERNAME"],
|
567
|
+
log=f"incorrect username {username}",
|
568
|
+
)
|
569
|
+
raise HTTPException(
|
570
|
+
status_code=status.HTTP_400_BAD_REQUEST,
|
571
|
+
detail=output_content,
|
572
|
+
)
|
573
|
+
local_list_authentication_user_response = (
|
574
|
+
global_object_square_database_helper.get_rows_v0(
|
575
|
+
database_name=global_string_database_name,
|
576
|
+
schema_name=global_string_schema_name,
|
577
|
+
table_name=UserCredential.__tablename__,
|
578
|
+
filters=FiltersV0(
|
579
|
+
root={
|
580
|
+
UserCredential.user_id.name: FilterConditionsV0(
|
581
|
+
eq=local_list_response_user_profile[0][UserProfile.user_id.name]
|
582
|
+
)
|
583
|
+
}
|
584
|
+
),
|
585
|
+
)["data"]["main"]
|
586
|
+
)
|
565
587
|
if len(local_list_authentication_user_response) != 1:
|
566
588
|
output_content = get_api_output_in_standard_format(
|
567
589
|
message=messages["INCORRECT_USERNAME"],
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: square-authentication
|
3
|
-
Version: 5.1.
|
3
|
+
Version: 5.1.4
|
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,14 @@ pip install square_authentication
|
|
32
32
|
|
33
33
|
## changelog
|
34
34
|
|
35
|
+
### v5.1.4
|
36
|
+
|
37
|
+
- re bug fix v5.1.3
|
38
|
+
|
39
|
+
### v5.1.3
|
40
|
+
|
41
|
+
- bugfix in login_username/v0 (getting creds from correct table).
|
42
|
+
|
35
43
|
### v5.1.2
|
36
44
|
|
37
45
|
- bump square_database_structure>=2.3.1.
|
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/__init__.py
RENAMED
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/configuration.py
RENAMED
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/data/config.ini
RENAMED
File without changes
|
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/messages.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/routes/__init__.py
RENAMED
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/routes/utility.py
RENAMED
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
{square_authentication-5.1.2 → square_authentication-5.1.4}/square_authentication/utils/token.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|