From c755a123b4b85e4032b7e77d7dc991724d32f4f5 Mon Sep 17 00:00:00 2001 From: vhande Date: Thu, 4 Jul 2024 13:52:43 +0200 Subject: [PATCH] Render keycloakClients --- app/Domain/Integrations/Controllers/IntegrationController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Domain/Integrations/Controllers/IntegrationController.php b/app/Domain/Integrations/Controllers/IntegrationController.php index 72cd433ac..d146c3a51 100644 --- a/app/Domain/Integrations/Controllers/IntegrationController.php +++ b/app/Domain/Integrations/Controllers/IntegrationController.php @@ -40,6 +40,7 @@ use App\Domain\Subscriptions\Repositories\SubscriptionRepository; use App\Domain\KeyVisibilityUpgrades\Repositories\KeyVisibilityUpgradeRepository; use App\Http\Controllers\Controller; +use App\Keycloak\Repositories\KeycloakClientRepository; use App\ProjectAanvraag\ProjectAanvraagUrl; use App\Router\TranslatedRoute; use App\UiTiDv1\Repositories\UiTiDv1ConsumerRepository; @@ -69,6 +70,7 @@ public function __construct( private readonly CouponRepository $couponRepository, private readonly Auth0ClientRepository $auth0ClientRepository, private readonly UiTiDv1ConsumerRepository $uitidV1ConsumerRepository, + private readonly KeycloakClientRepository $keycloakClientRepository, private readonly KeyVisibilityUpgradeRepository $keyVisibilityUpgradeRepository, private readonly CurrentUser $currentUser ) { @@ -87,12 +89,14 @@ public function index(Request $request): Response $auth0Clients = $this->auth0ClientRepository->getByIntegrationIds($integrationIds); $uitidV1Consumers = $this->uitidV1ConsumerRepository->getByIntegrationIds($integrationIds); + $keycloakClients = $this->keycloakClientRepository->getByIntegrationIds($integrationIds); return Inertia::render('Integrations/Index', [ 'integrations' => $integrationsData->collection->map(fn (Integration $integration) => $integration->toArray()), 'credentials' => [ 'auth0' => $auth0Clients, 'uitidV1' => $uitidV1Consumers, + 'keycloak' => $keycloakClients, ], 'paginationInfo' => $integrationsData->paginationInfo, ]);