> On May 17, 2015, at 11:29 AM, atom992 <[email protected]> wrote: > > Hi,I want to know that why I need add username/password and headers with > cookies info both in remote to sync doc ? I think headers with Cookies is > enough(Cookies info indicated username and password), why I need to add > username and password in remote object?
You shouldn’t have to, as long as the cookie is a valid session generated by the Sync Gateway. You can either authenticate with HTTP basic auth (where you provide username + password); or you can talk to your app server yourself and have it generate you a Sync Gateway session cookie, then authenticate with that cookie. I don’t know what you mean by "Cookies info indicated username and password”. The Sync Gateway doesn’t recognize any cookie that contains a username or password. The session cookie just contains an opaque randomly-generated session ID. —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/9E0C9884-56D3-49E8-BB98-C2628BF8274A%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
