Hi All,
We are trying to protect the sync gateway access with plain username and passowrd, so we did some configurations, that’s restricting normal user(port number: 4984) but not admin user(port number: 4985). Can you please suggest me, how to protect for admin user as well?
Example:
normal user: http://localhost:4984/sales_gateway/ – it’s forcing me to enter username and password, it’s fine and expected
admin user: http://localhost:4985/sales_gateway/ – it’s not asking any username and password and shows response, it looks strange for me, can we do some configurations to ask username and password?
Your help would be highly appreciated and thanks for your time.
Below is the config file:
{
“interface”:“localhost:4984”,
“adminInterface”:“localhost:4985”,
“databases”:{
“sales_gateway”:{
“server”:“http://localhost:8091”,
“bucket”:“sales”,
“sync”:function(doc) {channel(doc.channels);}
,
“users”: {
“GUEST”: {
“disabled”: true,
“admin_channels”: ["*"]
},
“subbu”: {“password”: “password”}
}
}
}
}