Tesla.Middleware.CouchDB.ProxyAuth (couchdb_auth v0.2.4)

View Source

Middleware implementing CouchDB proxy authentication.

It injects the X-Auth-CouchDB-* headers expected by CouchDB when operating behind a trusted proxy. The middleware can generate the token using the configured proxy secret or reuse a precomputed value passed in the options.