Python Eve MONGO_DBNAME vs MONGO_AUTHDBNAME -
eve's global configuration docs mention mongo_authdbname
, mongo_dbname
parameters.
i'd expect mongo_authdbname
database eve checks provided authorization credentials against. analogous cl usage being:
mongo -u "user" -p --authenticationdatabase "<mongo_authdbname>" --host x.x.x.x
i expect mongo_dbname
database eve orients endpoints/collections from. analogous cl usage being:
mongo> use <mongo_dbname>
so host:5000/endpoint
refer endpoint
collection within mongo_dbname
however when set mongo_dbname
other database need authenticate from, accessing every endpoint fails with:
operationfailure: authentication failed.
so...
is understanding above correct?
can mongo_dbname
, mongo_authdbname
different / credentials in settings.py
have have authentication database same database want endpoints/collections oriented from?
thanks
check this question. in short, mongo_authdbname
used in old mongodb authentication schemes. need have users in mongo_dbname
database make work.
Comments
Post a Comment