Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secured server #14

Open
Apcio opened this issue Aug 27, 2015 · 2 comments
Open

Secured server #14

Apcio opened this issue Aug 27, 2015 · 2 comments

Comments

@Apcio
Copy link

Apcio commented Aug 27, 2015

Hello.
How can I safety use bootstrap on secured servers (server admins, db admins, users) ?
I can pass to URL http://login:pas@domain but I don't think, this is a good idea ?

In CLI and Node.js ?

@jo
Copy link
Owner

jo commented Sep 1, 2015

Currently only auth urls are supported for the CLI.

For api usage you can pass in everything nano acceps. Here you can pass requestDefaults with an auth object.

For example:

bootstrap({
  url: 'https://couch.example.com',
  requestDefaults: {
    auth: {
      user: 'bob',
      pass: 'secure'
    }
  }
}, 'path/to/fs', cb)

@tlvince
Copy link
Contributor

tlvince commented Oct 29, 2015

I couldn't get this to work (#28), but a basic auth URL (e.g. http://admin:admin@localhost:5984) worked fine in both the CLI and API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants