Yes I had followed the guide for custom login, aka.

   - with a standalone server to check credential, 
   - and if succeeded, query the sync gateway server to fetch session id 
   from sync gateway server
   - send the fetched session id to the device

Though I mistakenly fogotten to set configuration in the sync_gateway 
configuration js file. I forgot to set the guest property to disabled. 
After I disable the guest property, everything works like a charm. 

So I deleted the post because that was an obvious mistake, but somehow the 
google groups won't let me.

Anyway, thanks Jens! You've been really helpful and quick responding.

-Sean


On Saturday, March 21, 2015 at 3:45:34 AM UTC+8, Jens Alfke wrote:
>
> How are the clients logging in? If they’re using username/password, rather 
> than Facebook or Persona, then they aren’t creating login sessions on the 
> server at all — instead they use HTTP Basic auth, where each request 
> includes the credentials. 
>
> —Jens

-- 
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/07ea9d01-e1b7-448c-b0ec-51bfab277b6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to