Creating a user in couchGatewayConfig.json


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

	"log": ["CRUD", "REST+"],
	"databases": {
		"dict-demo": {
			"server": "",
			"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?


0 Answers

No answers yet