Table of Contents

Method CreateOidcCredential

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

CreateOidcCredential(IOidcCallback, string)

Creates a credential used with MONGODB-OIDC.

public static MongoCredential CreateOidcCredential(IOidcCallback callback, string principalName = null)

Parameters

callback IOidcCallback

The OIDC callback.

principalName string

The 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

environment string

The built in environemnt.

userName string

User name.

Returns

MongoCredential

The OIDC credential.