couchdb-user mailing list archives

On 20 June 2012 22:22, Pulkit Singhal <pulkitsinghal@gmail.com> wrote:
> Does validate_doc_field method affect replication authN or authZ for
> CouchDB 1.2.0?
Hey Pulkit,
I googled authN/Z and found authorisation and authentication. I checked
the source and there's no validate_doc_field.
A validate_doc_update function (VDU) is run on a single doc only, and
has access to the proposed new doc as well as the current on-disk version,
and the user context.
So you can tell if the submitter of the update is authenticated or not, and
you can use couchdb roles, or other custom javascript fields in your doc
to decide to reject the docs or not.
There's more info on both the wiki and the definitive guide on this too.
A+
Dave