square-authentication 4.5.1__tar.gz → 5.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.
- {square_authentication-4.5.1 → square_authentication-5.0.0}/PKG-INFO +5 -1
- {square_authentication-4.5.1 → square_authentication-5.0.0}/README.md +4 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/setup.py +1 -1
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/routes/core.py +18 -2
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication.egg-info/PKG-INFO +5 -1
- {square_authentication-4.5.1 → square_authentication-5.0.0}/setup.cfg +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/__init__.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/configuration.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/data/config.ini +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/main.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/messages.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/pydantic_models/__init__.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/pydantic_models/core.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/routes/__init__.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/routes/utility.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/utils/__init__.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/utils/encryption.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/utils/token.py +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication.egg-info/SOURCES.txt +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication.egg-info/dependency_links.txt +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication.egg-info/requires.txt +0 -0
- {square_authentication-4.5.1 → square_authentication-5.0.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:
|
3
|
+
Version: 5.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
|
@@ -32,6 +32,10 @@ pip install square_authentication
|
|
32
32
|
|
33
33
|
## changelog
|
34
34
|
|
35
|
+
### v5.0.0
|
36
|
+
|
37
|
+
- change get_user_details_v0 to return app name instead of app ids.
|
38
|
+
|
35
39
|
### v4.5.1
|
36
40
|
|
37
41
|
- fix auto docker image build github action.
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/routes/core.py
RENAMED
@@ -264,6 +264,13 @@ async def get_user_details_v0(
|
|
264
264
|
"""
|
265
265
|
main process
|
266
266
|
"""
|
267
|
+
local_list_app = global_object_square_database_helper.get_rows_v0(
|
268
|
+
database_name=global_string_database_name,
|
269
|
+
schema_name=global_string_public_schema_name,
|
270
|
+
table_name=App.__tablename__,
|
271
|
+
apply_filters=False,
|
272
|
+
filters=FiltersV0(root={}),
|
273
|
+
)["data"]["main"]
|
267
274
|
local_list_response_user_app = global_object_square_database_helper.get_rows_v0(
|
268
275
|
database_name=global_string_database_name,
|
269
276
|
schema_name=global_string_schema_name,
|
@@ -307,10 +314,19 @@ async def get_user_details_v0(
|
|
307
314
|
UserCredential.user_credential_username.name
|
308
315
|
],
|
309
316
|
},
|
310
|
-
"apps": [
|
317
|
+
"apps": [
|
318
|
+
y[App.app_name.name]
|
319
|
+
for y in local_list_app
|
320
|
+
if y[App.app_id.name]
|
321
|
+
in [x[UserApp.app_id.name] for x in local_list_response_user_app]
|
322
|
+
],
|
311
323
|
"sessions": [
|
312
324
|
{
|
313
|
-
"app_id":
|
325
|
+
"app_id": [
|
326
|
+
y[App.app_name.name]
|
327
|
+
for y in local_list_app
|
328
|
+
if y[App.app_id.name] == x[UserApp.app_id.name]
|
329
|
+
][0],
|
314
330
|
"active_sessions": len(
|
315
331
|
[
|
316
332
|
y
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: square-authentication
|
3
|
-
Version:
|
3
|
+
Version: 5.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
|
@@ -32,6 +32,10 @@ pip install square_authentication
|
|
32
32
|
|
33
33
|
## changelog
|
34
34
|
|
35
|
+
### v5.0.0
|
36
|
+
|
37
|
+
- change get_user_details_v0 to return app name instead of app ids.
|
38
|
+
|
35
39
|
### v4.5.1
|
36
40
|
|
37
41
|
- fix auto docker image build github action.
|
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/__init__.py
RENAMED
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/configuration.py
RENAMED
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/data/config.ini
RENAMED
File without changes
|
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/messages.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/routes/__init__.py
RENAMED
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/routes/utility.py
RENAMED
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
{square_authentication-4.5.1 → square_authentication-5.0.0}/square_authentication/utils/token.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|