[ 
https://issues.apache.org/jira/browse/NUTCH-2991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17723144#comment-17723144
 ] 

Marcos Gomez commented on NUTCH-2991:
-------------------------------------

[~snagel] I added a simple patch for this new feature.

It pass the token via HttpClient, also had to modify some code when auth flag 
is set to true, due it was sending two Authorization header, one for Basic 
authentication and another one for Token authentication.

> Support HTTP/S Header Authorization for Solr connections
> --------------------------------------------------------
>
>                 Key: NUTCH-2991
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2991
>             Project: Nutch
>          Issue Type: New Feature
>          Components: indexer, plugin
>    Affects Versions: 1.19
>            Reporter: Marcos Gomez
>            Priority: Major
>             Fix For: 1.20
>
>         Attachments: solr_token_auth.patch
>
>
> Currently only Basic Authentication is possible with Solr, but I have an 
> issue to connect to a Solr instance that use Token authentication.
> So it should be possible to define the value of Authorization Header to 
> provide the name and token value, that will be send on the HTTP request to 
> Solr.
> Header:
>  * Authorization: _Name Value_
> So in the configuration should be able to set up something like this to 
> populate the header: 
>  * solr.auth.header.name=Bearer
>  * solr.auth.header.value=JWT_TOKEN
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to