Fix moved auth method
This commit is contained in:
@@ -18,6 +18,7 @@ from asyncio_mongo._pymongo import helpers
|
|||||||
from asyncio_mongo.collection import Collection
|
from asyncio_mongo.collection import Collection
|
||||||
from asyncio import coroutine
|
from asyncio import coroutine
|
||||||
from asyncio_mongo.exceptions import ErrorReply
|
from asyncio_mongo.exceptions import ErrorReply
|
||||||
|
from pymongo import auth
|
||||||
|
|
||||||
|
|
||||||
class Database(object):
|
class Database(object):
|
||||||
@@ -100,7 +101,7 @@ class Database(object):
|
|||||||
@coroutine
|
@coroutine
|
||||||
def authenticate_with_nonce(self, result, name, password):
|
def authenticate_with_nonce(self, result, name, password):
|
||||||
nonce = result['nonce']
|
nonce = result['nonce']
|
||||||
key = helpers._auth_key(nonce, name, password)
|
key = auth._auth_key(nonce, name, password)
|
||||||
|
|
||||||
# hacky because order matters
|
# hacky because order matters
|
||||||
auth_command = SON(authenticate=1)
|
auth_command = SON(authenticate=1)
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -93,7 +93,7 @@ else:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="asyncio_mongo",
|
name="asyncio_mongo",
|
||||||
version="0.2.1",
|
version="0.2.2",
|
||||||
description="Asynchronous Python 3.3+ driver for MongoDB <http://www.mongodb.org>",
|
description="Asynchronous Python 3.3+ driver for MongoDB <http://www.mongodb.org>",
|
||||||
author="Alexandre Fiori, Don Brown",
|
author="Alexandre Fiori, Don Brown",
|
||||||
author_email="mrdon@twdata.org",
|
author_email="mrdon@twdata.org",
|
||||||
|
|||||||
Reference in New Issue
Block a user