[guardian-dev] orbot proxying OAuth connections

Nathan of Guardian nathan at guardianproject.info
Fri Jun 13 09:37:55 EDT 2014



On June 12, 2014 5:49:04 PM EDT, Hans-Christoph Steiner <hans at guardianproject.info> wrote:
>
>I'm working on getting the Tomdroid note taking app to support syncing
>via
>.onion addresses.  It users Apache HTTP Client for the connections.  I
>was
>able to set the HTTP proxy for the httpclient object that accesses the
>service
>itself, but I was not able to get the OAuth stuff working with an
>httpclient
>configured the same way.  I got this exception:
>
>oauth.signpost.exception.OAuthCommunicationException: Communication
>with the
>service provider failed: Service provider responded in error: 500
>(Internal
>Privoxy Error)
> at
>oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:218)
> at
>oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:74)
> at
>org.tomdroid.sync.web.OAuthConnection.getAuthorizationUrl(OAuthConnection.java:172)
>at
>org.tomdroid.sync.web.SnowySyncService$1.run(SnowySyncService.java:102)
> at
>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
> at
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
> at java.lang.Thread.run(Thread.java:856)
>Caused by: oauth.signpost.exception.OAuthCommunicationException:
>Service
>provider responded in error: 500 (Internal Privoxy Error)
> at
>oauth.signpost.AbstractOAuthProvider.handleUnexpectedResponse(AbstractOAuthProvider.java:245)
> at
>oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:193)
>
>Anyone have any advice on how to do this?  Supporting an HTTP Proxy
>with
>Apache HTTP Client is so damn simple, I was hoping to go that route.
>Otherwise perhaps NetCipher/SOCKS...
>

It is very easy to use SOCKs with Apache HTTPClient so I would go that route.



More information about the Guardian-dev mailing list