This example implements HttpClientConfigurator and supplies a HttpRequestInterceptor instance that provides pre-emptive HTTP Basic authentication by injecting an Authorization header.
Hint: you may want to edit the com.ontotext.MyAuthenticator class and change the supplied username and password to the actual credentials used by your connector.
Run mvn clean install to build the project.
- Copy the output jar file to the relevant plugin directory, e.g. if you need it for Elasticsearch, copy the jar to
lib/plugins/elasticsearch-connector. - Restart GraphDB or the repository.
- Create a connector with
authenticationConfiguratorClassset tocom.ontotext.example.MyAuthenticator.