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, like below:
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
);