CouchDB Accounts
2010/01/09 05:22:44 +0000
I've just committed a new feature to CouchDB: simple Ajax login and logout, and the API glue to support it. Now CouchApp devs can just take it for granted that users are logged in (or not) as well as validate updates, set roles, etc.
CouchDB's authorization was added in 0.9, and there's been pluggable authentication for a long time. My recent commit really just integrates a lot of the stuff we've had for a while.
Here's a screencast documenting the account feature in Futon.
This should be just enough information to get you started, if you want to learn how to secure your application data from updates, read about validation functions in the free CouchDB book.
If you'd like to learn more about CouchApps, check out this list for a few of them.
by EvilTapir, 2010/01/12 20:49:56 +0000
This looks really good, well done. Authentication is next on my list for hi hi TapirWiki
by Viennt, 2010/01/15 09:40:34 +0000
Thank !
by Daniel Alexiuc, 2010/01/28 01:58:17 +0000
This is really great - I look forward to trying it out.
It's nice to be able to put a face to the name now too.
by Daniel Alexiuc, 2010/02/01 05:16:24 +0000
I've ripped out some of your authentication code into a stripped-down <a href="http://github.com/danielalexiuc/CouchApp-User-Authentication-Demo">working couchapp</a> that might be helpful for some. I hope that's ok.