I just started playing with Couchbase Sync Gateway, and I’m trying to figure out a good way to handle custom authentication. I’m reading the following part of the documentation:
http://developer.couchbase.com/documentation/mobile/1.2/develop/guides/sync-gateway/administering-sync-gateway/authenticating-users/index.html
and have the following questions:
-
Since instances of Couchbase Sync Gateway are unaware of each other, does that mean that one has to create the same user accounts on each of the instances so that regardless of which node our load balancing forwards the user to, authentication will still succeed?
-
Is there any plan to add REST callback style authentication on CB Sync Gateway? Currently, something like that is already done for Facebook Auth, but how about in general? What I am thinking of is to put a custom auth Rest endpoint in the config file, and CB Sync Gateway would use that whenever it needs to authenticate.
Thanks a lot!