Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MongoAuthorizationOptions

Options configuring Mongo authentication.

Hierarchy

  • MongoAuthorizationOptions

Index

Constructors

constructor

Methods

getCollectionName

  • getCollectionName(): string
  • The property name to be used to set the name of the collection inside the config.

    Returns string

getPermissionField

  • getPermissionField(): string
  • The property name to be used to set the name of the field, where the permissions are stored inside.

    Returns string

getRoleField

  • getRoleField(): string
  • The property name to be used to set the name of the field, where the roles are stored inside.

    Returns string

getUsernameField

  • getUsernameField(): string
  • The property name to be used to set the name of the field, where the username is stored inside.

    Returns string

setCollectionName

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

    Parameters

    • collectionName: string

    Returns MongoAuthorizationOptions

setPermissionField

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

    Parameters

    • permissionField: string

    Returns MongoAuthorizationOptions

setRoleField

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

    Parameters

    • roleField: string

    Returns MongoAuthorizationOptions

setUsernameField

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

    Parameters

    • usernameField: string

    Returns MongoAuthorizationOptions

Generated using TypeDoc