Skip to content

Commit

Permalink
Fix BasicAuthenticator not working
Browse files Browse the repository at this point in the history
Fixed the authentication type.
  • Loading branch information
pasin committed Aug 22, 2017
1 parent 8a732ec commit d54b621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objective-C/CBLBasicAuthenticator.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d54b621

Please sign in to comment.