Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1321

Vars in Rewrite rules break OAuth authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.2, 1.3
    • HTTP Interface
    • None
    • Ubuntu

    Description

      When a rewrite rule containing a var ( such as /:name/myfunction ) matches an incoming request then an additional query param gets created. Unfortunately this new query param gets included in the Signature Base String when the OAuth code generates its version of the request signature to validate the incoming request it causing authentication to fail.

      To fix this isn't straightforward. When a VHost is configured there is a handy copy of the original URL in (x-couchdb-vhost-path) that can be used to generate the Signature Base String, unfortunately if there isn't a VHost no such copy exists.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mhigham Martin Higham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: