Comments (7)
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.
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.
thanks for the info jehiah.
from asyncmongo.
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.
This is an amazing coincidence! I forked this repo hours ago to implement authentication and was working on it at the moment.
from asyncmongo.
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.
@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)
- Support for server-side scripting
- support other async libraries HOT 1
- The delay in the request for a large database on 64bit
- thread safety HOT 1
- README.md not included with package, results in setuptools error HOT 1
- Using the compiled bson library results in errors with Binary data HOT 3
- Connections not getting released or reused HOT 4
- get list of all collections HOT 2
- block request when reach the maxConnections HOT 3
- Client().insert() not return ObjectId() HOT 3
- Python 3.x support HOT 1
- Add support for group & aggregates
- Logical Operators: HOT 6
- examples
- when Tornado autoreload, asyncmongo didn't release connections
- Support for tornado > 3.0? HOT 2
- Upload to PyPI HOT 2
- Support for {'$meta': 'textScore'} in sort for mongo 2.6
- helpers.py _unpack_response error
- No module named 'errors'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asyncmongo.