square-authentication 4.5.0__py3-none-any.whl → 5.0.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.
@@ -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": [x[UserApp.app_id.name] for x in local_list_response_user_app],
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": x[UserApp.app_id.name],
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square-authentication
3
- Version: 4.5.0
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
@@ -45,6 +45,14 @@ pip install square_authentication
45
45
 
46
46
  ## changelog
47
47
 
48
+ ### v5.0.0
49
+
50
+ - change get_user_details_v0 to return app name instead of app ids.
51
+
52
+ ### v4.5.1
53
+
54
+ - fix auto docker image build github action.
55
+
48
56
  ### v4.5.0
49
57
 
50
58
  - add pytest dependency and dummy test.
@@ -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=F-FO0EJAhZenKrJxd4NeIvGazC8t_3wKX2T8bZwiza0,48736
9
+ square_authentication/routes/core.py,sha256=nELfF0iomAnhg-9KF0uUxLMog8uD0pI5IQqs_xUkVPU,49384
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.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,,
14
+ square_authentication-5.0.0.dist-info/METADATA,sha256=0nNLv60S1CDqNY_kbq9xSER95DxsTXHozyk2QZc-n_o,3611
15
+ square_authentication-5.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
16
+ square_authentication-5.0.0.dist-info/top_level.txt,sha256=wDssVJIl9KIEJPj5rR3rv4uRI7yCndMBrvHd_6BGXQA,22
17
+ square_authentication-5.0.0.dist-info/RECORD,,