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

SCRAM-SHA-1 missing authSource? #222

Closed
colinbes opened this issue Jul 19, 2015 · 5 comments
Closed

SCRAM-SHA-1 missing authSource? #222

colinbes opened this issue Jul 19, 2015 · 5 comments

Comments

@colinbes
Copy link

In latest update I see mention of passing an option for specifying authMechanism.

In mongojs:
mongojs('username:password@localhost/bcdb', ['mycollection'], {authMechanism: 'ScramSHA1'});

but I don't see how to specify the authority source database for authentication?

For example, in mongodb it's defined in the url along with the authentication mechanism.

mongodb, mongoose etc:
"mongodb://username:password@localhost:27017/bcdb/?authSource=bcdb&authMechanism=SCRAM-SHA-1"

More than happy to help with any testing/validation etc.

Thanks
Colin

@saintedlama
Copy link
Collaborator

Did take a look mongodb-core that mongodb driver mongojs uses under the hood and found nothing to specify authSource. Already created an issue in mongodb-core project https://github.com/christkv/mongodb-core/issues/32

@saintedlama
Copy link
Collaborator

This has to be implemented in mongojs since mongodb-core is a bit to lean for this. Any help appreciated!

@colinbes
Copy link
Author

@saintedlama
Copy link
Collaborator

Should be fixed in version 2.0 (released just some seconds ago)

@colinbes
Copy link
Author

colinbes commented Dec 2, 2015

Sweet, thanks!

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

2 participants