Merge pull request #4034 from sebastienblanc/KEYCLOAK-3108
KEYCLOAK-3108: Make the credentials map case insensitive
This commit is contained in:
commit
906739f8f3
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue