Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into MOSIP-31314-otp-…
Browse files Browse the repository at this point in the history
…validation-security-fix
  • Loading branch information
Loganathan Sekar authored and Loganathan Sekar committed Feb 7, 2024
2 parents b07d219 + b301e61 commit 6b9c13b
Show file tree
Hide file tree
Showing 12 changed files with 2,969 additions and 2,831 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 6b9c13b

Please sign in to comment.