How does the Sync Gateway authenticate to Couchbase Server?

2015-02-22 Thread Pascal
I'm trying to create a Vagrant/Ansible setup that builds a box hosting Couchbase Server and the Sync Gateway. Getting the server installed, initialized and creating a bucket works just fine, thanks to the scripts available at https://github.com/couchbaselabs/ansible-couchbase-server. I can also

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-02-23 Thread Jens Alfke
> On Feb 22, 2015, at 11:59 PM, Pascal wrote: > > a) if it's correct that the sync gateway connects to the admin port (8091 by > default) instead of the API port – the docs do not mention either but always > use the default admin port I’m not clear on the distinction between those ports. 8091

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-02-27 Thread Pascal
Thanks Jens. I wanted to test that suggestion but sync-gateway (1.0.3) doesn't accept any config files: $ /opt/couchbase-sync-gateway/bin/sync_gateway -url http://localhost:8091 -bucket eponyms couchbase-sync-gateway.json 16:43:21.989336 FATAL: Error reading config file couchbase-sync-gateway.j

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-02-27 Thread Jens Alfke
> On Feb 27, 2015, at 8:49 AM, Pascal wrote: > > "users": { > "GUEST": {"disabled": false}, > "admin_channels": ["public"] > } That’s wrong — the “admin_channels” property needs to be inside

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-03-02 Thread Pascal
Ah indeed, d'oh! Thanks a lot Jens! Interestingly, it does NOT work when I specify username/password, but works if I don't specify anything and have sync-gateway and server running on the same machine. I guess I'm still not understanding how authentication between the two works. In any case, I'

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-03-02 Thread Jens Alfke
> On Mar 2, 2015, at 3:19 AM, Pascal wrote: > > Interestingly, it does NOT work when I specify username/password, but works > if I don't specify anything and have sync-gateway and server running on the > same machine. I guess I'm still not understanding how authentication between > the two wo

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-03-02 Thread Pascal
On Monday, March 2, 2015 at 5:55:30 PM UTC+1, Jens Alfke wrote: > > > On Mar 2, 2015, at 3:19 AM, Pascal > > wrote: > > Interestingly, it does NOT work when I specify username/password, but > works if I don't specify anything and have sync-gateway and server running > on the same machine. I gues

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-03-02 Thread Pascal
Just found that Couchbase actually has a nice board with a lot of answers, thanks, I'll stop spamming the list. :) https://forums.couchbase.com/t/sync-gateway-with-couchbase-server/1947 On Monday, March 2, 2015 at 9:55:45 PM UTC+1, Pascal wrote: > > On Monday, March 2, 2015 at 5:55:30 PM UTC+1,

Re: How does the Sync Gateway authenticate to Couchbase Server?

2015-03-02 Thread Jens Alfke
> On Mar 2, 2015, at 12:55 PM, Pascal wrote: > > Since it works without specifying username/password and since this is secure > because it only works locally all is well and I'm satisfied. I just tried to > understand how sync gateway would talk to a non-local Couchbase server. Is > that not