Skip to content

Commit dc7bc2d

Browse files
Merge pull request #72 from vin0dkhichar/2.0
fix: Correctly instantiate AuthFactory in dependency injection
2 parents f859e76 + 7f8948b commit dc7bc2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openg2p-spar-bene-portal-api/src/openg2p_spar_bene_portal_api/controllers/mapper_controller.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, **kwargs):
6868
async def link(
6969
self,
7070
link_request: LinkRequest,
71-
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory)],
71+
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory())],
7272
) -> LinkResponse:
7373
"""
7474
Link ID to Financial Address
@@ -151,7 +151,7 @@ async def link(
151151
async def resolve(
152152
self,
153153
resolve_request: ResolveRequest,
154-
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory)],
154+
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory())],
155155
) -> ResolveResponse:
156156
"""
157157
Resolve ID to Financial Address
@@ -200,7 +200,7 @@ async def resolve(
200200
async def unlink(
201201
self,
202202
unlink_request: UnlinkRequest,
203-
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory)],
203+
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory())],
204204
) -> UnlinkResponse:
205205
"""
206206
Unlink ID from Financial Address
@@ -248,7 +248,7 @@ async def unlink(
248248
async def update(
249249
self,
250250
update_request: UpdateRequest,
251-
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory)],
251+
auth_credentials: Annotated[AuthCredentials, Depends(AuthFactory())],
252252
) -> UpdateResponse:
253253
"""
254254
Update ID to Financial Address mapping

0 commit comments

Comments
 (0)