cloudant-labs / backbone.cloudant

Experimental helper objects for interacting with data stored in Cloudant
https://cloudant.com/blog/backbone-and-cloudant/
MIT License
25 stars 5 forks source link

Getting ERROR for not having write access #4

Open seanbarclay opened 11 years ago

seanbarclay commented 11 years ago

"error":"forbidden","reason":"one of _writer, _creator is required for this request"

paulkoegel commented 11 years ago

I can't find any instructions on authorisation either =( The docco mentions an auth parameter, but any further details are missing. I'm trying to hook up a BB app directly to a CouchDB and as an admin of my app I'd like to grant it write access to my CouchDB. It'd be okay to just enter my API key every time i want to use my admin panel. As I understand it there isn't an OAuth option yet, is there?

drsm79 commented 11 years ago

Hey Paul, If you put a user:pass in the database url it will work (which is obviously totally insecure), if you access the app you should be prompted to log in via basic auth (since couch does the challenge 401) and be able to log in that way. What I'd like to add is the ability to create accounts via the _users DB, and have a bit more smarts around that (including OAuth which is only partially supported by CouchDB, and not by Cloudant). HTH Simon

intel352 commented 11 years ago

Any ETA for smarter AUTH?

drsm79 commented 11 years ago

I have some ideas on how I'd like to implement it, I hope to work on it this weekend. Suggestions/input welcome!