dependencies#
Dependencies for the accounts domain.
User Account Controllers.
- async app.domain.accounts.dependencies.provide_user(request: Request[UserModel, Any, Any]) UserModel [source]#
Get the user from the connection.
- Parameters:
request – current connection.
- Returns:
User
- async app.domain.accounts.dependencies.provide_users_service(db_session: AsyncSession) AsyncGenerator[UserService, None] [source]#
Construct repository and service objects for the request.
- async app.domain.accounts.dependencies.provide_roles_service(db_session: AsyncSession | None = None) AsyncGenerator[RoleService, None] [source]#
Provide roles service.
- Parameters:
db_session (AsyncSession | None, optional) – current database session. Defaults to None.
- Returns:
A role service object
- Return type:
- async app.domain.accounts.dependencies.provide_user_oauth_account_service(db_session: AsyncSession | None = None) AsyncGenerator[UserOAuthAccountService, None] [source]#
Provide user oauth account service.
- Parameters:
db_session (AsyncSession | None, optional) – current database session. Defaults to None.
- Returns:
A user oauth account service object
- Return type:
- async app.domain.accounts.dependencies.provide_user_roles_service(db_session: AsyncSession | None = None) AsyncGenerator[UserRoleService, None] [source]#
Provide user roles service.
- Parameters:
db_session (AsyncSession | None, optional) – current database session. Defaults to None.
- Returns:
A user role service object
- Return type: