pin3da / passport-couchdb

Example of passport authentication using Express 4.0 and couchdb
4 stars 0 forks source link

unauthorized: You are not a db or server admin. #1

Open rmshkmr opened 7 years ago

rmshkmr commented 7 years ago

No functions found for User.find()

ERROR unauthorized: You are not a db or server admin.

undefined


CouchError: unauthorized: You are not a db or server admin.
    at Request._onResponse [as _callback] (/home/ramesh/Documents/Learning/passport-couchdb-master/node_modules/cradle/lib/cradle.js:232:29)
    at Request.self.callback (/home/ramesh/Documents/Learning/passport-couchdb-master/node_modules/request/request.js:188:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/home/ramesh/Documents/Learning/passport-couchdb-master/node_modules/request/request.js:1171:10)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/home/ramesh/Documents/Learning/passport-couchdb-master/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:260:16)
    at emitNone (events.js:72:20)
justinlawrence commented 7 years ago

Sounds like a permission issue. I think you need to add your user and password to config/development.js.

shikherwalia commented 6 years ago

it is not working (development.js)

alexandergantikow commented 1 year ago

Indeed, this looks like a permission issue. However, even if I specify the correct configuration details of the database, I get the above error. It looks to me more like the username and password are not being passed through properly. It looks like the 'resourceful' package uses 'cradle'. My skills are not sufficient to debug their interrelationships.