[ 
https://issues.apache.org/jira/browse/SOLR-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934741#action_12934741
 ] 

Lance Norskog commented on SOLR-2240:
-------------------------------------

Is it possible to make this more general, and support other forms of 
authentication?


> Basic authentication for stream.url
> -----------------------------------
>
>                 Key: SOLR-2240
>                 URL: https://issues.apache.org/jira/browse/SOLR-2240
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 4.0
>            Reporter: Jayendra Patil
>            Priority: Minor
>         Attachments: SOLR-2240.patch
>
>
> We intend to use stream.url for indexing documents from remote locations 
> exposed through http.
> However, the remote urls are secured and would need basic authentication to 
> be able access the documents.
> The current implementation for stream.url in ContentStreamBase.URLStream does 
> not support authentication.
> The implementation with stream.file would mean to download the files to a 
> local box and would cause duplicity, whereas stream.body would have indexing 
> performance issues with the hugh data being transferred over the network.
> An approach would be :-
> 1. Passing additional authentication parameter e.g. stream.url.auth with the 
> encoded authentication value - SolrRequestParsers
> 2. Setting Authorization request property for the Connection - 
> ContentStreamBase.URLStream
>     this.conn.setRequestProperty("Authorization", "Basic " + 
> encodedauthentication);
> Any thoughts ??

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to