You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I've created a oauth authenticator class for couchdb that implements IChallengeResponseAuthenticator. It worked well for documents without attachments but with attachments I get an "you are not authorized to access this db" message and the document and attachments are not replicated. I've downloaded the couchbase.lite project and searched for the problem.
I think the problem is related with the lack of this code on the SendAsyncMultipartRequest method, on the Replication.cs class.
var challengeResponseAuth = Authenticator as IChallengeResponseAuthenticator;
if (challengeResponseAuth != null) {
var authHandler = clientFactory.Handler as DefaultAuthHandler;
if (authHandler != null) {
authHandler.Authenticator = challengeResponseAuth;
}
challengeResponseAuth.PrepareWithRequest(message);
}
I've tested and it works fine now.
Please let me know if you can fix this on the next couchbase.lite release.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi!
I've created a oauth authenticator class for couchdb that implements IChallengeResponseAuthenticator. It worked well for documents without attachments but with attachments I get an "you are not authorized to access this db" message and the document and attachments are not replicated. I've downloaded the couchbase.lite project and searched for the problem.
I think the problem is related with the lack of this code on the SendAsyncMultipartRequest method, on the Replication.cs class.
I've tested and it works fine now.
Please let me know if you can fix this on the next couchbase.lite release.
Thanks!
The text was updated successfully, but these errors were encountered: