vertx / io.vertx.kotlin.ext.auth.mongo / MongoAuthOptions

MongoAuthOptions

fun MongoAuthOptions(collectionName: String? = null, config: JsonObject? = null, datasourceName: String? = null, passwordField: String? = null, permissionField: String? = null, roleField: String? = null, saltField: String? = null, saltStyle: HashSaltStyle? = null, shared: Boolean? = null, usernameCredentialField: String? = null, usernameField: String? = null): MongoAuthOptions

A function providing a DSL for building io.vertx.ext.auth.mongo.MongoAuthOptions objects.

Options configuring Mongo authentication.

Parameters

collectionName - The property name to be used to set the name of the collection inside the config.

config - The mongo client configuration: see Mongo Client documentation.

datasourceName - The mongo data source name: see Mongo Client documentation.

passwordField - The property name to be used to set the name of the field, where the password is stored inside

permissionField - The property name to be used to set the name of the field, where the permissions are stored inside.

roleField - The property name to be used to set the name of the field, where the roles are stored inside.

saltField - The property name to be used to set the name of the field, where the SALT is stored inside.

saltStyle - The property name to be used to set the name of the field, where the salt style is stored inside

shared - Use a shared Mongo client or not.

usernameCredentialField - The property name to be used to set the name of the field, where the username for the credentials is stored inside.

usernameField - The property name to be used to set the name of the field, where the username is stored inside.