Skip to content

"skipSetup: true" with "require_valid_user = true" shows browser modal #61

@nylki

Description

@nylki

Hey there,
I set require_valid_user = true in my CouchDB's local.ini,
to only allow actual users, but no anonymous users.

Also skipSetup: true is set when initalizing the DB.

However, each time I db.login('test', 'test'), I get the browser modal requiring to enter credentials,
although test:test exists, and normally works without require_valid_user = true

tested in Firefox 42 and Chrome 47.

the relevant code:

    var db, local
    function switchDB(dbname) {
      db = new PouchDB('http://127.0.0.1:5984/' + dbname, {skipSetup: true})
      local = new PouchDB(dbname)
      local.sync(db, {live: true, retry: true}).on('error', console.log.bind(console))
      return db.login('test', 'test')
    }

I already tried http://stackoverflow.com/questions/32670580/prevent-authentication-popup-401-with-couchdb-pouchdb, which seemed to solve the issue, but I want to use fauxton on the backend which doesn't work after that.

If it doesn't work any other way, I guess I could set roles for each db as a workaround…

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions