I'm just curious what's the difference between using credentials or an authenticator on a CBLReplicator object?
The documentation seems to imply they are similar, although the wording is slightly different.
For credential:
/** The credential (generally username+password) to use to authenticate to the remote database.
This can either come from the URL itself (if it's of the form "http://user:pa...@example.com")
or be stored in the NSURLCredentialStorage, which is a wrapper around the Keychain. */
NSURLCredential *credential = [NSURLCredential credentialWithUser:username password:password persistence:NSURLCredentialPersistenceSynchronizable];
self.currentPull.credential = credential;
and for authenticator:
/** An object that knows how to authenticate with a remote server.
CBLAuthenticator is an opaque protocol; instances can be created by calling the factory methods
of the class of the same name. */
id<CBLAuthenticator> authenticator = [CBLAuthenticator basicAuthenticatorWithName: username password: password];
self.currentPull.authenticator = authenticator;
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/0c8a2caf-27af-483c-83cc-86a2c78c63b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mar 16, 2016, at 11:11 AM, Brendan Duddridge <bren...@gmail.com> wrote:
So then I should use only a CBLAuthenticator?
On Mar 16, 2016, at 12:32 PM, Brendan Duddridge <bren...@gmail.com> wrote:
I do store the password in the keychain already though and obtain it from there whenever I need it.