1
0
forked from baron/baron-sso

feat: automatically create default user groups upon tenant registration/approval

This commit is contained in:
2026-03-04 14:16:43 +09:00
parent 39b41a4c42
commit a973cd746b
2 changed files with 87 additions and 9 deletions

View File

@@ -265,7 +265,7 @@ func main() {
kratosAdminService := service.NewKratosAdminService()
oryAdminProvider := service.NewOryProvider()
tenantService := service.NewTenantService(tenantRepo, userRepo, ketoOutboxRepo)
tenantService := service.NewTenantService(tenantRepo, userRepo, userGroupRepo, ketoOutboxRepo)
userGroupService := service.NewUserGroupService(userGroupRepo, userRepo, tenantRepo, ketoService, ketoOutboxRepo, kratosAdminService)
tenantService.SetKetoService(ketoService) // Keto 주입