When providing OpenID based access to the users in ES, the Email-IDs are taken as case sensitive i.e. if an user has email, Xyz.Abc@foo.com
, if I give the Email-ID as xyz.abc@foo.com
, the user is unable to login.
Is there any way we can make this Email-ID case insensitive in Elasticsearch, so that lower case Email-IDs will work for all users?
ES version: 7.3.2
Tier: Platinum X-Pack enabled
User Authentication: OpenID based
Current role-mapping request:
PUT _security/role_mapping/foo_read_user_01?pretty
{
"roles": [
"foo_client",
"kibana_dashboard_only_user"
],
"enabled": true,
"rules": {
"all": [
{
"field": {
"realm.name": "oidc1"
}
},
{
"field": {
"username": [
"Xyz.Abc@foo.com",
"Bar.Yahoo@foo.com",
"FOOBAR@foo.com",
"foozbaR@foo.com"
]
}
}
]
}
}
Expected role-mapping request:
PUT _security/role_mapping/foo_read_user_01?pretty
{
"roles": [
"foo_client",
"kibana_dashboard_only_user"
],
"enabled": true,
"rules": {
"all": [
{
"field": {
"realm.name": "oidc1"
}
},
{
"field": {
"username": [
"xyz.abc@foo.com",
"bar.yahoo@foo.com",
"foobar@foo.com",
"foozbar@foo.com"
]
}
}
]
}
}
Please let me know if you need any additional details.