Skip to content

Commit

Permalink
Merge pull request #1176 from mahammedtaheer/develop
Browse files Browse the repository at this point in the history
[MOSIP-28837] [MOSIP-31341] added validation for auth inputs and corrected response.
  • Loading branch information
ckm007 authored Feb 1, 2024
2 parents 47463dc + 9e41c8e commit 4af6c53
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 4af6c53

Please sign in to comment.