Authentication and Authorization
Feature
Use authentication to connect with SOLR server
How to
- You need activate this feature in SOLR server, to do this, follow steps in SOLR wiki
- Change your SolrExpressOptions and set SecurityOptions
services
.AddSolrExpress<TechProduct>(builder => builder
.UseOptions(options =>
{
// ... Other settings
options.Security = new SecurityOptions
{
AuthenticationType = AuthenticationType.Basic,
Password = "<YOUR PASSWORD>",
UserName = "<YOUR USER NAME>"
}
})
// ... Other settings
);