KEYCLOAK-3108: Make the credentials map case insensitive

This commit is contained in:
sebastienblanc 2017-04-12 10:58:54 +02:00
parent 00b832b1cd
commit 9a2d36aa9d

View file

@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
/**
* Common Adapter configuration
@ -58,7 +59,7 @@ public class BaseAdapterConfig extends BaseRealmConfig {
@JsonProperty("public-client")
protected boolean publicClient;
@JsonProperty("credentials")
protected Map<String, Object> credentials = new HashMap<>();
protected Map<String, Object> credentials = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
public boolean isUseResourceRoleMappings() {