Skip to content

Commit

Permalink
Render keycloakClients
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Jul 4, 2024
1 parent 2319960 commit c755a12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Domain/Integrations/Controllers/IntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
) {
Expand All @@ -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,
]);
Expand Down

0 comments on commit c755a12

Please sign in to comment.