Authentication and Authorization

Feature

Use authentication to connect with SOLR server

How to

  1. You need activate this feature in SOLR server, to do this, follow steps in SOLR wikiarrow-up-right

  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
            );

Last updated

Was this helpful?