From 3bcb2e0553c126655e6d2f07b03195863f9bd7f0 Mon Sep 17 00:00:00 2001 From: mahammedtaheer <57249563+mahammedtaheer@users.noreply.github.com> Date: Tue, 31 Oct 2023 22:02:45 +0530 Subject: [PATCH] [ES-309] fixed residenceStatus attribute issue in VCI. (#1122) Signed-off-by: Mahammed Taheer --- .../service/kyc/util/ExchangeDataAttributesUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/authentication/authentication-service/src/main/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtil.java b/authentication/authentication-service/src/main/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtil.java index 9df519391df..73a86159bff 100644 --- a/authentication/authentication-service/src/main/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtil.java +++ b/authentication/authentication-service/src/main/java/io/mosip/authentication/service/kyc/util/ExchangeDataAttributesUtil.java @@ -76,10 +76,8 @@ public List filterAllowedUserClaims(String oidcClientId, List co return List.of(); } - List oidcClientAllowedUserClaims = List.of(oidcClientData.get().getUserClaims()) - .stream() - .map(String::toLowerCase) - .collect(Collectors.toList()); + List oidcClientAllowedUserClaims = List.of(oidcClientData.get().getUserClaims()); + if (consentAttributes.isEmpty()) { return oidcClientAllowedUserClaims; }