I working on the Apache solr (version 8) authentication, using basic authentication API. Using below security.json and placed in the $Solr_Home(/opt/solr/server). But still i am not getting authentication popup when I open the solr site
{
"authentication":{
"blockUnknown": true,
"class":"solr.BasicAuthPlugin",
"credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVB
AaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="},
"realm":"My Solr users",
"forwardCredentials": false
},
"authorization":{
"class":"solr.RuleBasedAuthorizationPlugin",
"permissions":[{"name":"security-edit","role":"admin"}],
"user-role":{"solr":"admin"}
}}
You should place the file in /var/solr/data/ or where ever solr.xml is. and make sure the file name is security.json. Otherwise, Apache Solr won't recognize the file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With