Hi
I have configured Basic auth using security.json - attached below for reference

When user enter username/password as "solr  " ( username with whitespaces ) 
system allows login successfully even when trailing whitespace is added to the 
username and/or password.

So can you let us know correct way to create security.json which will validate 
username and/or password.


{
  "authorization": {
    "user-role": {
      "solr": "admin"
    },
    "permissions": [
      {
        "role": "admin",
        "name": "all"
      }
    ],
    "class": "solr.RuleBasedAuthorizationPlugin"
  },
  "authentication": {
    "credentials": {
      "solr": "j4Cohx5gF/saSQx3nJUGixAgChHHa/2GmighqSXkhNE= 
fIi5Zj0mm85YOhTE5EauyWRtI8PXTEcXbLfgm8F5YOI="
    },
    "blockUnknown": true,
    "class": "solr.BasicAuthPlugin"
  }
}

Reply via email to