diff --git a/backend/account_v2/authentication_controller.py b/backend/account_v2/authentication_controller.py index 19eac7baa..ef63fffd3 100644 --- a/backend/account_v2/authentication_controller.py +++ b/backend/account_v2/authentication_controller.py @@ -213,6 +213,13 @@ def set_user_organization(self, request: Request, organization_id: str) -> Respo logger.info( f"New organization created with Id {organization_id}", ) + else: + try: + self.auth_service.setup_default_adapters_for_user( + organization=organization, user=user + ) + except MethodNotImplemented: + logger.info("setup_default_adapters_for_user not implemented") user_info: UserInfo | None = self.get_user_info(request) serialized_user_info = SetOrganizationsResponseSerializer(user_info).data diff --git a/backend/account_v2/authentication_service.py b/backend/account_v2/authentication_service.py index 591742821..053a1e67a 100644 --- a/backend/account_v2/authentication_service.py +++ b/backend/account_v2/authentication_service.py @@ -266,6 +266,11 @@ def get_invitations(self, organization_id: str) -> list[MemberInvitation]: def frictionless_onboarding(self, organization: Organization, user: User) -> None: raise MethodNotImplemented() + def setup_default_adapters_for_user( + self, organization: Organization, user: User + ) -> None: + raise MethodNotImplemented() + def delete_invitation(self, organization_id: str, invitation_id: str) -> bool: raise MethodNotImplemented()