Skip to content

Commit

Permalink
Merge pull request #1177 from mahammedtaheer/release-1.2.0.1
Browse files Browse the repository at this point in the history
[MOSIP-28837] [MOSIP-31341] Cherry-picked added validation to release branch from develop.
  • Loading branch information
ckm007 authored Feb 1, 2024
2 parents 28e0a5f + 56577b5 commit 8c63446
Show file tree
Hide file tree
Showing 10 changed files with 2,938 additions and 2,813 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.springframework.context.annotation.PropertySource;

import io.mosip.authentication.common.service.factory.IDAMappingFactory;
import io.mosip.authentication.core.indauth.dto.KeyBindedTokenDTO;
import io.mosip.authentication.core.spi.indauth.match.MappingConfig;
import lombok.Data;

Expand Down Expand Up @@ -128,5 +129,4 @@ public class IDAMappingConfig implements MappingConfig {

/** The password. */
private List<String> password;

}
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ public List<String> getUserPreferredLanguages(Map<String, List<IdentityInfoDTO>>
if (userPreferredLangAttribute != null) {
List<IdentityInfoDTO> identityInfoList = idInfo.get(userPreferredLangAttribute);
if (identityInfoList != null) {
return identityInfoList.stream().map(IdentityInfoDTO::getValue).collect(Collectors.toList());
return identityInfoList.stream().map(info -> info.getValue().split(","))
.flatMap(java.util.Arrays::stream)
.collect(Collectors.toList());
}
return Collections.emptyList();
}
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 8c63446

Please sign in to comment.