History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1426
Type: Wish Wish
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Michael Rimov
Votes: 3
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
groovy

Support basic authentication

Created: 19/Jul/06 04:46 PM   Updated: 23/Jun/08 02:58 PM
Component/s: XML-RPC
Affects Version/s: None
Fix Version/s: 1.6

Time Tracking:
Not Specified

File Attachments: 1. Text File groovy-xmlrpc.patch (1 kb)
2. Text File XMLRPCServerProxy-httpAuth-patch.txt (3 kb)



 Description  « Hide
Since it wasn't documented how to accomplish, I started digging through the XML-RPC source code, and it appears to me that basic authentication isn't supported at all.

I would consider this a must for any serious XML-RPC usage.

Thanks!



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nic Grounds - 02/Jul/07 02:32 PM
The attached patch allows a map to be passed in to the XMLRPCServerProxy constructor which will be used to set request properties. Although this feature is much more generic than authentication/authorization it does permit users to supply a simple Basic Auth header to include in their remote method invocations (property name "Authorization", property value is "Basic " + base64-encoding of "username:password").

Tom Nichols - 23/Jun/08 02:58 PM
I wasn't aware this issue was already open so I raised another question on the mailing list and implemented the same functionality myself. Hopefully now with two patches to choose from it can be merged to the repository Thanks!