From 443fe431984513edd663ba78aab7d7596ca028b4 Mon Sep 17 00:00:00 2001 From: nttdata-rtorsoli Date: Wed, 25 Oct 2023 16:17:29 +0200 Subject: [PATCH] PIN-3515 Resolved PR issue --- .../authorizationprocess/api/impl/ClientApiServiceImpl.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/it/pagopa/interop/authorizationprocess/api/impl/ClientApiServiceImpl.scala b/src/main/scala/it/pagopa/interop/authorizationprocess/api/impl/ClientApiServiceImpl.scala index 7f2193fb..c5509222 100644 --- a/src/main/scala/it/pagopa/interop/authorizationprocess/api/impl/ClientApiServiceImpl.scala +++ b/src/main/scala/it/pagopa/interop/authorizationprocess/api/impl/ClientApiServiceImpl.scala @@ -254,7 +254,7 @@ final case class ClientApiServiceImpl( .getClient(clientUuid) .ensureOr(client => OrganizationNotAllowedOnClient(clientId, client.consumerId))(_.consumerId == requesterOrgId) _ <- client.users.find(_ == requesterUserId).toFuture(UserNotFound(selfcareId, requesterUserId)) - user <- assertSecurityUser(selfcareId, requesterOrgId, requesterUserId) + _ <- assertSecurityUser(selfcareId, requesterOrgId, requesterUserId) seeds = keysSeeds.map(_.toDependency(requesterUserId, dateTimeSupplier.get())) keysResponse <- authorizationManagementService.createKeys(clientUuid, seeds)(contexts) } yield Keys(keysResponse.keys.map(_.toApi))