From d54b6214e9184e369a289b0289b0bbc2fa5feb21 Mon Sep 17 00:00:00 2001 From: Pasin Suriyentrakorn Date: Tue, 22 Aug 2017 16:23:15 -0700 Subject: [PATCH] Fix BasicAuthenticator not working Fixed the authentication type. --- Objective-C/CBLBasicAuthenticator.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-C/CBLBasicAuthenticator.m b/Objective-C/CBLBasicAuthenticator.m index c82689bd2..83f74c980 100644 --- a/Objective-C/CBLBasicAuthenticator.m +++ b/Objective-C/CBLBasicAuthenticator.m @@ -26,7 +26,7 @@ - (instancetype) initWithUsername: (NSString*)username password: (NSString*)pass - (void) authenticate: (NSMutableDictionary *)options { NSMutableDictionary *auth = [NSMutableDictionary new]; - auth[@kC4ReplicatorAuthType] = @kC4ReplicatorAuthPassword; + auth[@kC4ReplicatorAuthType] = @kC4AuthTypeBasic; auth[@kC4ReplicatorAuthUserName] = _username; auth[@kC4ReplicatorAuthPassword] = _password; options[@kC4ReplicatorOptionAuthentication] = auth;