Re: How to log off a user to from sync_gateway?

36 views
Skip to first unread message

Jens Alfke

unread,
Mar 20, 2015, 3:45:34 PM3/20/15
to mobile-c...@googlegroups.com
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

SeanDev

unread,
Mar 20, 2015, 11:44:32 PM3/20/15
to mobile-c...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages