Joscha Feth wrote:

> sorry, let me clarify my question: if I manage to write that erlang
> code block, can I get it running with a binary build of COuchDB by
> putting this file/function somewhere? Or do I need to add it somewhere
> in the source distro and compile CouchDB?

Just found it out myself:

1. create your own module with a handler
2. compile it into a beam
3. put it into lib\couch-WHATEVER\ebin
4. add the module in the modules section of
lib\couch-WHATEVER\ebin\couch.app
5. add the handler to local.ini: authentication_handlers =
{couch_httpd_whatever_auth, my_authentication_handler}
6. restart CouchDB

-- 


Reply via email to