Merge pull request #4034 from sebastienblanc/KEYCLOAK-3108

KEYCLOAK-3108: Make the credentials map case insensitive
This commit is contained in:
Stian Thorgersen 2017-04-19 09:49:07 +02:00 committed by GitHub
commit 906739f8f3

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() {