Creating a user in couchGatewayConfig.json

Hi,

I tried adding a user via the couchGatewayConfig.json - file like this:

{
 	"interface":":4984",
   "adminInterface":":4985",
	"log": ["CRUD", "REST+"],
	"databases": {
		"dict-demo": {
			"server": "http://127.0.0.1:8091",
			"bucket": "dict-demo",
      "users": {
                "TEST": {"password":"demo", "admin_channels":["*"], "all_channels":["*"]},
        	"GUEST": {"disabled": false, "password":"demo", "admin_channels":["*"], "all_channels":["*"]}
      	 },
			"sync": `function(doc) {channel(doc.channels);}`
		}
     }
}

GET and POST are both working using the GUEST user, but as soon as I add the user TEST to the .json, I can't start the server anymore. The Error I am shown is
 FATAL: Error opening database: Invalid config for user "TEST": Invalid password -- rest.RunServer() at config.go:268

Can somebody help me about this? How do I define users correctly?

Thanks.

0 Answers

No answers yet