AuthenticationMode type
Mongo 集群支持的身份验证模式。
KnownAuthenticationMode 可与 AuthenticationMode 互换使用,此枚举包含服务支持的已知值。
服务支持的已知值
NativeAuth:使用用户名和密码的本机 mongo 身份验证模式,身份验证机制为“SCRAM-SHA-256”。
MicrosoftEntraID:使用分配给群集和身份验证机制“MONGODB-OIDC”的 Entra 用户的 Microsoft Entra ID 身份验证模式。
type AuthenticationMode = string