Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Example custom authenticator using HttpClientConfigurator and HttpRequestInterceptor

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.

Build

Run mvn clean install to build the project.

Install

  1. 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.
  2. Restart GraphDB or the repository.
  3. Create a connector with authenticationConfiguratorClass set to com.ontotext.example.MyAuthenticator.