youssef Liouene
youssef Liouene

Reputation: 883

Custom Authentication with 2 Sync Gateway

I'm trying add Custom Authentication. I use 2 instances of Sync-Gateway behind an Nginx. So how can we manage Session with 2 instances of Sync-Gateway?

The custom authentication is achieved by calling the "//_session" endpoint. This then returns a cookie that logs me in for the first Sync-Gateway. If I now want to synchronize the second Sync-Gateway too, I make a call to "//_session" which overrides the first cookie.

Is there any way to create a global Session?

Upvotes: 0

Views: 120

Answers (1)

G. Blake Meike
G. Blake Meike

Reputation: 6715

Please see this answer, from bbrks, here: https://forums.couchbase.com/t/custom-authentication-with-2-sync-gateway/29762 :

If you’re using 2 separate CB buckets/SG databases, they’re completely independent systems and user-information is not shared between them.

Upvotes: 1

Related Questions