Doh! I see the code from *Pro Couchbase Server* is remarkably similar to 
the code here 
<http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/replication/index.html#creating>
.

Also, I see from the Couchbase Mobile documentation that the remote 
Couchbase server can employ https and this seems to be mandatory if wanting 
to use Basic Authentication in a secure manner.


On Sunday, 2 November 2014 01:49:31 UTC+13, Steve wrote:
>
> Trying to get my head around user authentication in Couchbase Lite*. Can I 
> simply prompt the user for their username and password and then use 
> something like the following?
>
> auth = [CBLAuthenticator basicAuthenticatorWithName: @"<username>"
>                                           password: @"<password>"];
>
> (from *Pro Couchbase Server* by David Ostrovsky and Yaniv Rodenski. 
> ISBN-13: 978-1430266136)
>
> Is this secure if the remote Couchbase server URL employs http rather than 
> https? Can a remote Couchbase server even employ https? I assume I can't 
> encrypt the username and password in the line above.
>
>
> *=Has Couchbase Lite changed its name to Couchbase Mobile?
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/372fec20-a8c9-4247-b3ae-44cdab73a6e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to