svc-infra 0.1.599__py3-none-any.whl → 0.1.600__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.

Potentially problematic release.


This version of svc-infra might be problematic. Click here for more details.

@@ -12,6 +12,7 @@ from fastapi_users.password import PasswordHelper
12
12
  from svc_infra.api.fastapi.auth._cookies import compute_cookie_params
13
13
  from svc_infra.api.fastapi.auth.policy import AuthPolicy, DefaultAuthPolicy
14
14
  from svc_infra.api.fastapi.auth.settings import get_auth_settings
15
+ from svc_infra.api.fastapi.db.sql.session import SqlSessionDep
15
16
  from svc_infra.api.fastapi.dual.public import public_router
16
17
 
17
18
  _pwd = PasswordHelper()
@@ -66,19 +67,18 @@ def auth_session_router(
66
67
  router = public_router()
67
68
  policy = auth_policy or DefaultAuthPolicy(get_auth_settings())
68
69
 
69
- from svc_infra.api.fastapi.db.sql import SqlSessionDep
70
70
  from svc_infra.security.lockout import get_lockout_status, record_attempt
71
71
 
72
72
  @router.post("/login", name="auth:jwt.login")
73
73
  async def login(
74
74
  request: Request,
75
+ session: SqlSessionDep,
75
76
  username: str = Form(...),
76
77
  password: str = Form(...),
77
78
  scope: str = Form(""),
78
79
  client_id: str | None = Form(None),
79
80
  client_secret: str | None = Form(None),
80
81
  user_manager=Depends(fapi.get_user_manager),
81
- session: SqlSessionDep = Depends(),
82
82
  ):
83
83
  strategy = auth_backend.get_strategy()
84
84
  email = username.strip().lower()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: svc-infra
3
- Version: 0.1.599
3
+ Version: 0.1.600
4
4
  Summary: Infrastructure for building and deploying prod-ready services
5
5
  License: MIT
6
6
  Keywords: fastapi,sqlalchemy,alembic,auth,infra,async,pydantic
@@ -19,7 +19,7 @@ svc_infra/api/fastapi/apf_payments/setup.py,sha256=bk_LLLXyqTA-lqf0v-mdpqLEMbXB1
19
19
  svc_infra/api/fastapi/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  svc_infra/api/fastapi/auth/_cookies.py,sha256=U4heUmMnLezHx8U6ksuUEpSZ6sNMJcIO0gdLpmZ5FXw,1367
21
21
  svc_infra/api/fastapi/auth/add.py,sha256=-GOLZv-O53wfegmMQsi1wgex_IKJWBJJ4vEQNONQpnU,10014
22
- svc_infra/api/fastapi/auth/gaurd.py,sha256=j9k5V67MGr1s7m9yH4CPGAPkzAnnsqA5-xvrluYN3Ts,8751
22
+ svc_infra/api/fastapi/auth/gaurd.py,sha256=CXT5oMjxy_uQNyDRxQCxY2C4JFpMJqTTAz2j8pY5jOQ,8743
23
23
  svc_infra/api/fastapi/auth/mfa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  svc_infra/api/fastapi/auth/mfa/models.py,sha256=Te1cpGEBguUgul2NS50W_tHgybuu-TOIMPEBy53y9xc,1232
25
25
  svc_infra/api/fastapi/auth/mfa/pre_auth.py,sha256=ZsXIUNnObF8wx9-sz7PXGHrSSpaY2G0Ed5wwvu8TBzA,1379
@@ -270,7 +270,7 @@ svc_infra/webhooks/fastapi.py,sha256=BCNvGNxukf6dC2a4i-6en-PrjBGV19YvCWOot5lXWsA
270
270
  svc_infra/webhooks/router.py,sha256=6JvAVPMEth_xxHX-IsIOcyMgHX7g1H0OVxVXKLuMp9w,1596
271
271
  svc_infra/webhooks/service.py,sha256=hWgiJRXKBwKunJOx91C7EcLUkotDtD3Xp0RT6vj2IC0,1797
272
272
  svc_infra/webhooks/signing.py,sha256=NCwdZzmravUe7HVIK_uXK0qqf12FG-_MVsgPvOw6lsM,784
273
- svc_infra-0.1.599.dist-info/METADATA,sha256=dIULp2nBSVBybFpHOi0m0LEZRZe0dYUTYZPJYve8i1w,7839
274
- svc_infra-0.1.599.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
275
- svc_infra-0.1.599.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
276
- svc_infra-0.1.599.dist-info/RECORD,,
273
+ svc_infra-0.1.600.dist-info/METADATA,sha256=1ekHs-7jStQ8BL7CK_oFlQz3-achrzHCElfMJu4Yx-s,7839
274
+ svc_infra-0.1.600.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
275
+ svc_infra-0.1.600.dist-info/entry_points.txt,sha256=6x_nZOsjvn6hRZsMgZLgTasaCSKCgAjsGhACe_CiP0U,48
276
+ svc_infra-0.1.600.dist-info/RECORD,,