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

Alejandro Abdelnur commented on HADOOP-10307:
---------------------------------------------

Looking at the patch, it duplicates part of the logic done in HADOOP-9054 
(using the user-agent), if we do that, then we should built on HADOOP-9054, not 
duplicating the code. Also, personally, I don't like the idea of query string 
param to indicate the auth scheme to use.

The other day, talking with [~daryn], he suggested that to support multiple 
authentication schemes we could multiple WWW-Authenticate headers. I was not 
aware this was possible, I've checked around and it is possible. You can either 
have multiple schemes in the same WWW-Authenticate header (parsing that is a 
bit tricky and HttpClient does not support it yet (HTTPCLIENT-1489). Or you can 
have multiple WWW-Authenticate headers.

IMO, we should do as [~daryn] suggested me offline, add support for multiple 
authentication schemes. The AuthenticationFilter would have to support a list 
of AuthenticationHandlers, when a requests comes in and it is not authenticated 
(because of a cookie and because no handler found authentication info in it), 
then the response should include the challenges of all AuthenticationHandlers. 
Then the client should choose the strongest one it supports.


> Support multiple Authentication mechanisms for HTTP
> ---------------------------------------------------
>
>                 Key: HADOOP-10307
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10307
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>    Affects Versions: 2.2.0
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>         Attachments: HADOOP-10307.patch, HADOOP-10307.patch, 
> HADOOP-10307.patch
>
>
> Currently it is possible to specify a custom Authentication Handler  for HTTP 
> authentication.  
> We have a requirement to support multiple mechanisms  to authenticate HTTP 
> access.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to