[jira] Created: (CAMEL-1214) http producer should support authentication out of box

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-1214) http producer should support authentication out of box

JIRA jira@apache.org
http producer should support authentication out of box
-------------------------------------------------------

                 Key: CAMEL-1214
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1214
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-http
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 2.0.0


Since HttpClient provides the authentication[1] support , it should be easy to support it in camel-http component.
Here a mail thread[2] which is discussing it.

[1] http://hc.apache.org/httpclient-3.x/authentication.html
[2] http://www.nabble.com/Does-HTTP-Component-support-basic-authentication--tt21259555s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1214) http producer should support authentication out of box

JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48430#action_48430 ]

Willem Jiang commented on CAMEL-1214:
-------------------------------------

I just did a quick fix for the basic authentication of camel-http.
Now you can use "username" and "password" as the parameter name to set the basic authentication for camel-http producer.

camel-http also provides a  plugable strategy (HttpClientConfigurer) for configuring the HttpClient, you can create your own HttpClientConfigurer to set the authentication for the httpclient.

TODO update the wiki page of it.

> http producer should support authentication out of box
> -------------------------------------------------------
>
>                 Key: CAMEL-1214
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1214
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>
> Since HttpClient provides the authentication[1] support , it should be easy to support it in camel-http component.
> Here a mail thread[2] which is discussing it.
> [1] http://hc.apache.org/httpclient-3.x/authentication.html
> [2] http://www.nabble.com/Does-HTTP-Component-support-basic-authentication--tt21259555s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1214) http producer should support authentication out of box

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48432#action_48432 ]

Claus Ibsen commented on CAMEL-1214:
------------------------------------

Willem. If you add setters for username/password then you can configure it from spring XML as well. And end users can have username and password in .properties files and use the spring property $ syntax.



> http producer should support authentication out of box
> -------------------------------------------------------
>
>                 Key: CAMEL-1214
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1214
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>
> Since HttpClient provides the authentication[1] support , it should be easy to support it in camel-http component.
> Here a mail thread[2] which is discussing it.
> [1] http://hc.apache.org/httpclient-3.x/authentication.html
> [2] http://www.nabble.com/Does-HTTP-Component-support-basic-authentication--tt21259555s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1214) http producer should support authentication out of box

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48433#action_48433 ]

Claus Ibsen commented on CAMEL-1214:
------------------------------------

Ah you added username/password as options to the endpoint. Good.



> http producer should support authentication out of box
> -------------------------------------------------------
>
>                 Key: CAMEL-1214
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1214
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.0.0
>
>
> Since HttpClient provides the authentication[1] support , it should be easy to support it in camel-http component.
> Here a mail thread[2] which is discussing it.
> [1] http://hc.apache.org/httpclient-3.x/authentication.html
> [2] http://www.nabble.com/Does-HTTP-Component-support-basic-authentication--tt21259555s22882.html

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-1214) http producer should support authentication out of box

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-1214.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.1

> http producer should support authentication out of box
> -------------------------------------------------------
>
>                 Key: CAMEL-1214
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1214
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-http
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.5.1, 2.0.0
>
>
> Since HttpClient provides the authentication[1] support , it should be easy to support it in camel-http component.
> Here a mail thread[2] which is discussing it.
> [1] http://hc.apache.org/httpclient-3.x/authentication.html
> [2] http://www.nabble.com/Does-HTTP-Component-support-basic-authentication--tt21259555s22882.html

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