[oauth] Java OAuthClient.access() fails due to redirect

2010-11-16 Thread droidin.net
I'm trying to obtain authentication URL using Java 4 OAuth. When I do OAuthClient.invoke() call it throws OAuthException since response returns 302 code. I'm using OAuthClient.access() call instead but now I'm finding out that when I'm trying access any protected resources 302 also frequently

[oauth] Java OAuthClient.access

2009-01-30 Thread John Kristian
I propose to extend the Java oauth-core library to better support accessing protected resources, as follows. Please let me know if this is a bad idea, or there's a better way. In brief, I propose to add a method to OAuthClient: /** Send a request and return the response. */ public