Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Enable ScramSHA1 auth provider #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tjyrkinen
Copy link

Fixes #35

Leaves mongocr as the default auth provider but allows setting ScramSHA1 via options: {authMechanism: 'ScramSHA1'}, identical to mongojs.

@nodkrot
Copy link

nodkrot commented Oct 18, 2015

Need this! MongoLabs updated to MongoDB to v3. Please merge.

@gilbert
Copy link

gilbert commented Mar 24, 2016

This works! Here's an example of how to use it:

var connectionString = 'mongodb://...'
var db = pmongo(connectionString, {
  authMechanism: 'ScramSHA1'
});

@nicornk
Copy link

nicornk commented Apr 26, 2016

Please merge.

@imjul1an
Copy link

Is this fix is going to be merged?

@pihvi
Copy link

pihvi commented Nov 14, 2016

Works when you use in package.json dependency:
"promised-mongo": "git://github.com/tjyrkinen/promised-mongo.git#dist"

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

Successfully merging this pull request may close these issues.

7 participants