solr express
1.0.0
Search
K

Authentication and Authorization

Feature

Use authentication to connect with SOLR server

How to

  1. 1.
    You need activate this feature in SOLR server, to do this, follow steps in SOLR wiki
  2. 2.
    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
);