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
Support authorization #129
Comments
I'm curious, is this authorization is about this uri string: |
I'm not sure but maybe current code will just connect to db without auth |
I saw from here https://www.youtube.com/watch?v=VF38U2qd27Q, seems he can connect to mongo atlas, but somehow my mongo string to local mongodb doesn't work. How to establish connection to mongodb with user pass? if this issue is related with that user pass, then I will wait while looking for a workaround. |
The version after v0.20.0 has completely used TS refactoring. Before that, it was packaged with mongodb's official rust library. Previous versions can work, but the plugin API of Deno itself is always in an unstable state, and it may be deleted. Therefore, this project has been completely rewritten and has not yet been able to support authorization. The work includes two parts
|
//memo |
Is ready my dear, my pull request is complete. The driver now supports authentication! |
Pull request #156 |
@whiter001 already fixed on v0.20.1 |
v0.21.0 is supported |
I still got an error
while using the same string as being used in my mongodb compass. |
and this is my code:
|
my password is |
@iamdenny I don't think because of special characters, already tried using alphanumeric still doesn't work. |
@darrylsepeda You can try to use the parameter object to connect await client.connect({
credential:{
username: `$username`,
password: `${pass}`,
mechanism: `SCRAM-SHA-1`,
db: `$db`
},
db: `${db}`,
servers: [{host:"localhost",port:27017}]
}); |
@manyuanrong thanks and noted, will try in a few days and let you know. cheers! |
The current version using TS has more functions than before. However, authorized login has not yet been implemented. If completed, 1.0 can be released
https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst#scram-sha-1
The text was updated successfully, but these errors were encountered: