androidretrofitxauthokhttp

Retrofit OkHttp and Signpost (xAuth) on Android


I was wondering if its possible to be able to use Retrofit with OkHttp to make a xAuth post call, with the hashed body of the cass as part of the oauth headers.

I have a basic implementation working for get requests, which do not have a body, however the service request fails on post requests which contain a body(where the oauth header which is the hashed body) is being passed through.

Thanks


Solution

  • Fixed it, basically I used used a combination of URLClient and OkClient to be able to manipulate where I sign my request.