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

Authentication support #12

Open
IanButterworth opened this issue Dec 26, 2015 · 3 comments
Open

Authentication support #12

IanButterworth opened this issue Dec 26, 2015 · 3 comments

Comments

@IanButterworth
Copy link

Is Mongodb authentication supported? or likely to be added?

I have a mongodb that must be authenticated, but this appears to be the best Julia package I can find to interact with it.

@ghost
Copy link

ghost commented Dec 26, 2015

Hi there, it may be possible to specify authentication details in the URL itself, see: https://docs.mongodb.org/v3.0/reference/connection-string/

If not, it should be easy to add support, and contributions are welcome!

@IanButterworth
Copy link
Author

Ok great, thanks for the tip. edit: and I'm happy to contribute if I figure out a good method!

I've tried to do so via the URL, but hit the error below:

using Mongo
client = MongoClient("user:[email protected]/databasename",27017)
collection = MongoCollection(client, "databasename", "collectionname")
oid = insert(collection, Dict("name"=>"New", "value"=>1))

LoadError: insert: �
Invalid reply from getnonce
while loading In[2], in expression starting on line 16

 in error at ./error.jl:21
 in insert at /home/juser/.julia/v0.4/Mongo/src/MongoCollection.jl:45

@specter119
Copy link

@ianshmean @pzion the user and password in URL have no effect on authentication in pymongo. I think authentication is needed, for the dbs can't accessed without password.

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