Method CreateOidcCredential
CreateOidcCredential(IOidcCallback, string)
Creates a credential used with MONGODB-OIDC.
public static MongoCredential CreateOidcCredential(IOidcCallback callback, string principalName = null)
Parameters
callback
IOidcCallbackThe OIDC callback.
principalName
stringThe principal name.
Returns
- MongoCredential
The OIDC credential.
CreateOidcCredential(string, string)
Creates a credential used with MONGODB-OIDC.
public static MongoCredential CreateOidcCredential(string environment, string userName = null)
Parameters
Returns
- MongoCredential
The OIDC credential.