> On Nov 10, 2014, at 4:12 AM, João Agostinho <[email protected]> wrote:
> 
> im returning the session token to my phonegap app but i cant figure out how 
> to pass it to cblite

The cleanest way is to configure your server so that the API endpoint you use 
for your custom auth has the same hostname and port as the SG. (You'll need to 
use some kind of proxy or URL rewriter to do that, like nginx or Apache.) Then 
your custom auth endpoint can just return a Set-Cookie: header with the session 
cookie, and the client will automatically start using it for calls to the SG.

If you can't configure the server that way, then on the client you can 
explicitly force the replicator to send the cookie by adding a "Cookie" 
property to a "headers" object in your replication config.

—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/2D52FE55-053B-4AE6-91CD-408824B9E749%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to