Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MongoAuthorization

An extension of AuthProvider which is using as store

Hierarchy

  • any
    • MongoAuthorization

Index

Properties

Static Readonly DEFAULT_COLLECTION_NAME

DEFAULT_COLLECTION_NAME: string

The default name of the collection to be used

Static Readonly DEFAULT_PERMISSION_FIELD

DEFAULT_PERMISSION_FIELD: string

The default name of the property for the permissions, like it is stored in mongodb. Permissions are expected to be saved as JsonArray

Static Readonly DEFAULT_ROLE_FIELD

DEFAULT_ROLE_FIELD: string

The default name of the property for the roles, like it is stored in mongodb. Roles are expected to be saved as JsonArray

Static Readonly DEFAULT_USERNAME_FIELD

DEFAULT_USERNAME_FIELD: string

The default name of the property for the username, like it is stored in mongodb

Methods

Static create

  • create an authorization provider with the specified id and authorizations

    Parameters

    • id: string
    • authorizations: Authorization

    Returns AuthorizationProvider

  • Creates an instance of MongoAuthorization by using the given and configuration object.

    Parameters

    Returns MongoAuthorization

Generated using TypeDoc