Constructor MongoOidcIdentity NamespaceMongoDB.Driver AssemblyMongoDB.Driver.dll MongoOidcIdentity(string) Initializes a new instance of the MongoOidcIdentity class. public MongoOidcIdentity(string username = null) Parameters username string The username.