Closed azri92 closed 6 years ago
You'll need to implement a CDTHTTPInterceptor
-interceptRequestInContext
that adds the Authorization
header to the request
and add that interceptor to your replication.
See https://github.com/cloudant/CDTDatastore/blob/master/doc/httpinterceptors.md for more information about interceptors.
Out of curiosity what is the use-case that means the session cookie doesn't work for you?
Thanks for the reply.
The CouchDB server I'm connecting to doesn't have cookie auth up yet, so I just had to fallback to basic auth.
In the Changelog, I can see that:
So, how do we use Basic Authentication instead? This is possible in sync-android. But I can't find any mention of this in CDTDatastore's docs.