I have submitted a feature enhancement request to Apache HttpClient to see if we can get it into the core
http://issues.apache.org/jira/browse/HTTPCLIENT-836 In there I have added a new type of Credential called OAuthCredential which can have a consumer secret/key and access token/key. In the example I was using a direct authentication which only requests a consumerKey (username) and consumerSecret (password). I could have extended this example to work with digest, basic or oauth authentication when the server returns multiple www-authenticate headers so that's why I used UsernamePasswordAuthentication in this case. If you changed the example with the new class it would have use OAuthCredentials(consumerKey, consumerSecret) or OAuthCredentials (consumerKey, consumerSecret, accessToken, tokenSecret). I'm not sure if processChallenge needs to do anything special, because the WWW-Authenticate header for OAuth just returns the realm, it's not like Digest where the server returns the nonce, qop, and auth. Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OAuth" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/oauth?hl=en -~----------~----~----~----~------~----~------~--~---
