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

Support authSource authentication option in mongodb #47

Merged
merged 1 commit into from
Sep 9, 2015

Conversation

TheolZacharopoulos
Copy link
Contributor

You can add now an authentication database for mongodb by initialising the eventstore:

var es = require('eventstore')({
  type: 'mongodb',
  host: 'localhost',                          // optional
  port: 27017,                                // optional
  dbName: 'eventstore',                       // optional
  eventsCollectionName: 'events',             // optional
  snapshotsCollectionName: 'snapshots',       // optional
  transactionsCollectionName: 'transactions', // optional
  timeout: 10000                              // optional
  // authSource: 'authedicationDatabase',        // optional
  // username: 'technicalDbUser',                // optional
  // password: 'secret'                          // optional
});

@adrai
Copy link
Contributor

adrai commented Sep 9, 2015

I will look at it tomorrow ok?
so I will update a lot of other modules too

adrai added a commit that referenced this pull request Sep 9, 2015
Support authSource authentication option in mongodb
@adrai adrai merged commit 8068edd into thenativeweb:master Sep 9, 2015
@TheolZacharopoulos
Copy link
Contributor Author

Great, thanks man.

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

Successfully merging this pull request may close these issues.

None yet

2 participants