You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Michael Pereira (JIRA)" <ji...@apache.org> on 2010/06/11 19:48:18 UTC

[jira] Created: (WINK-292) Add proxy authentification support for the RestClient

Add proxy authentification support for the RestClient
-----------------------------------------------------

                 Key: WINK-292
                 URL: https://issues.apache.org/jira/browse/WINK-292
             Project: Wink
          Issue Type: Bug
          Components: Client
    Affects Versions: 1.1
         Environment: Windows, jdk1.6.0_14
            Reporter: Michael Pereira
            Priority: Minor


Hello,

In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.

I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy

Great job so far, it is very helpful !

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


[jira] Updated: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-292:
----------------------------------

    Attachment:     (was: WINK-292.patch)

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Priority: Minor
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Updated: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-292:
----------------------------------

    Attachment: WINK-292.patch

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Priority: Minor
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Resolved: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer resolved WINK-292.
-----------------------------------

    Fix Version/s: 1.1.2
       Resolution: Fixed

Bit if a change from the original patch.  Now there is a seperate ProxyAuthSecurityHandler.  If you need both proxy auth and basic http auth, the function for these lives in two seperate handlers.  I think this makes the most sense since you can have proxy auth with no basic http auth, vice versa, or both.  Client developers and pick which handlers they need instead of combining function into one.

This fix, along with lots of new tests, which required refactoring of MockHttpServer and the auth handlers themselves, is committed in SVN rev 979403 and will appear in the snapshot builds soon.

Michael P, please let me know if this satisfies your request, and close the issue at that time.  Thanks!

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Assignee: Mike Rheinheimer
>            Priority: Minor
>             Fix For: 1.1.2
>
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Updated: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer updated WINK-292:
----------------------------------

    Attachment: WINK-292.patch

See attached patch.  I just put the implementation to handle proxy auth, which is very similar to http auth, in the BasicAuthSecurityHandler.

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Priority: Minor
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Assigned: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Rheinheimer reassigned WINK-292:
-------------------------------------

    Assignee: Mike Rheinheimer

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Assignee: Mike Rheinheimer
>            Priority: Minor
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Work started: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Mike Rheinheimer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on WINK-292 started by Mike Rheinheimer.

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Assignee: Mike Rheinheimer
>            Priority: Minor
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Commented: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Michael Pereira (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891897#action_12891897 ] 

Michael Pereira commented on WINK-292:
--------------------------------------

Thanks, I will test it next week !

> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Assignee: Mike Rheinheimer
>            Priority: Minor
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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


[jira] Commented: (WINK-292) Add proxy authentification support for the RestClient

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892434#action_12892434 ] 

Hudson commented on WINK-292:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #371 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/371/])
    WINK-292: add ProxyAuthSecurityHandler, refactor auth code, refactor MockHttpServer, add several tests


> Add proxy authentification support for the RestClient
> -----------------------------------------------------
>
>                 Key: WINK-292
>                 URL: https://issues.apache.org/jira/browse/WINK-292
>             Project: Wink
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 1.1
>         Environment: Windows, jdk1.6.0_14
>            Reporter: Michael Pereira
>            Assignee: Mike Rheinheimer
>            Priority: Minor
>             Fix For: 1.1.2
>
>         Attachments: WINK-292.patch
>
>
> Hello,
> In the current state, it is possible to specify the host and port of the proxy, but not the username and password that are requested. It would be useful to be able to specify the user and password to consume a webservice when your network is behind a web proxy.
> I found a workaround, but I requires some work ... http://stackoverflow.com/questions/3023885/consume-restful-webservice-through-web-proxy
> Great job so far, it is very helpful !

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