Welcome Guest, you are in: Login

dbones docs

RSS RSS

Navigation (ArmChair)





Search the wiki
»

Security

RSS
Modified on 2014/09/14 05:48 by Dave Categorized as Uncategorized

Table of Contents [Hide/Show]

overview

This article looks into the support for authentication.

Authentication

CouchDB has support so a few secuirty mechanisms out of the box. To help with this we have support for the following

  • Cookie (RFC 2109)
  • Basic (RFC 2617)

Applying

For example, to apply basic auth, just apply it to the Connection.


var conn = new Connection(DbLocation)
{
    Authentication = new BasicAuthentication("dave", "password")
};
var database = new Database(DbName, conn);

Now any operation will have the following HTTP header


Authorization: Basic ZGF2ZTpwYXNzd29yZA==
dbones docs, is a sub-site of dbones.co.uk, all its content belongs to dbones.co.uk, this also includes logo's.