Mongodb身份验证 [英] Mongodb authentication
本文介绍了Mongodb身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过官方C#驱动程序对mongodb使用身份验证?除了内部成员外,我找不到任何要进行身份验证的API方法.
How do I use authentication with mongodb via the official c# driver? I can't find any API methods to authenticate, other than internal members.
推荐答案
应使用以下连接字符串格式在您的连接字符串中指定身份验证凭据:
Authentication credentials should be specified in your connection string, using the following connection string format:
mongodb://[username:password@]hostname[:port][/[database][?options]]
这篇关于Mongodb身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文