solr express
5.3.0
5.3.0
  • Introduction
  • About SOLR Express
    • Release notes
    • About
      • License
      • Packages
    • Benchmarks
      • Version 3.1.2
      • Version 5.0.0
    • Breaking changes
      • Version 5.0.0
  • Tutorials
    • Getting started
    • Basic Features
      • Queries
      • Fail fast
      • Global settings
      • Local parameter
    • Facets
      • Facet field
      • Facet query
      • Facet range
      • Facet spatial
      • Nested facet
    • Advanced Features
      • Authentication and Authorization
      • Dynamic field behaviour
      • Result interceptors
Powered by GitBook
On this page
  • Feature
  • How to

Was this helpful?

  1. Tutorials
  2. Advanced Features

Authentication and Authorization

PreviousAdvanced FeaturesNextDynamic field behaviour

Last updated 6 years ago

Was this helpful?

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

  2. 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
            );
SOLR wiki