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, [email protected]
, if I give the Email-ID as [email protected]
, 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": [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
]
}
}
]
}
}
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": [
"[email protected]",
"[email protected]",
"[email protected]",
"[email protected]"
]
}
}
]
}
}
Please let me know if you need any additional details.