Skip to content

Commit

Permalink
Refactor cli di
Browse files Browse the repository at this point in the history
  • Loading branch information
madnoberson committed Jan 22, 2024
1 parent bfec63c commit 244103f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/amdb/main/cli/di.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
from amdb.main.ioc import IoC


IDENTITY_PROVIDER_USER_ID = UserId(UUID("00000000-0000-0000-0000-000000000000"))
IDENTITY_PROVIDER_PERMISSIONS = 2


class DependenciesDict(TypedDict):
ioc: IoC
identity_provider: RawIdentityProvider
Expand All @@ -32,8 +36,8 @@ def create_dependencies_dict(generic_config: GenericConfig) -> DependenciesDict:
hasher=Hasher(),
)
identity_provider = RawIdentityProvider(
user_id=UserId(UUID("00000000-0000-0000-0000-000000000000")),
permissions=2,
user_id=IDENTITY_PROVIDER_USER_ID,
permissions=IDENTITY_PROVIDER_PERMISSIONS,
)

return DependenciesDict(ioc=ioc, identity_provider=identity_provider)

0 comments on commit 244103f

Please sign in to comment.