Code Monkey home page Code Monkey logo

Comments (7)

vikasuy avatar vikasuy commented on June 20, 2024

After doing some research, it seems that this fits into a larger issue of connection to a db with authentication. Is there any plans for supporting this in asyncmongo soon? Something along the lines of what is mentioned here http://www.mongodb.org/display/DOCS/Implementing+Authentication+in+a+Driver .

Thank for all your help!

from asyncmongo.

jehiah avatar jehiah commented on June 20, 2024

vikasuy, there is nothing stopping this from being implemented. I don't personally use authentication, but if you can fork asyncmongo and implement it, I'd be happy to merge that patch in.

from asyncmongo.

vikasuy avatar vikasuy commented on June 20, 2024

thanks for the info jehiah.

from asyncmongo.

patrickod avatar patrickod commented on June 20, 2024

I have implemented Authentication for a fully cached connection pool. The only feature that has yet to be implemented is when a function is called on a connection that has yet to be created we can't block the function and wait until the authentication is finished and as a result the first database request on a new connection will fail. The connection will however be successfully created and authenticated and any subsequent requests against that connection will succeed. Far from ideal but it works for us.

The fork is here : http://github.com/patrickod/asyncmongo

We have also changed the method of instantiation to create a cached pool when the server starts and not wait for the first request to create connections.

from asyncmongo.

eguven avatar eguven commented on June 20, 2024

This is an amazing coincidence! I forked this repo hours ago to implement authentication and was working on it at the moment.

from asyncmongo.

patrickod avatar patrickod commented on June 20, 2024

Hah that's great. Please fork my fork if it's of any help to you and we can try and finish this last mile of it. :)

from asyncmongo.

jehiah avatar jehiah commented on June 20, 2024

@patrickod thanks for working on adding authentication;

After a quick look, i think the remaining work left is to defer the initial query on a new connection that needs authentication, and complete that query after authentication.

If you could open up a pull request directly to your fork, I'll close this issue in favor of that, and i can give more constructive feedback then.

from asyncmongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.