couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Chesneau (JIRA)" <>
Subject [jira] Created: (COUCHDB-466) couchdb oauth doesn't work behind reverse proxy
Date Thu, 13 Aug 2009 17:35:15 GMT
couchdb oauth doesn't work behind reverse proxy

                 Key: COUCHDB-466
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 0.10
            Reporter: Benoit Chesneau
             Fix For: 0.10
         Attachments: x_forwarded_host.diff

Currently oauth doesn't work behind a reverse proxy because signature is based on Host. Reverse
proxy like apache, lighttpd pass to the proxied server some header that help him to know which
host is forwared. Apache send X-Forwarded-For, Lighttpd X-Host, ....

Patch attached fix this issue by testing if a custom forwarded host header is present and
use it as Host. If it isn't present it will use Host header of fallback on socket detection
like it is currently. All tests pass.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message