Skip to content

Commit

Permalink
[MOSIP-28837] [MOSIP-31341] added validation for auth inputs and corr…
Browse files Browse the repository at this point in the history
…ected response.

Signed-off-by: Mahammed Taheer <[email protected]>
  • Loading branch information
mahammedtaheer committed Jan 31, 2024
1 parent 47463dc commit 9e41c8e
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 9e41c8e

Please sign in to comment.