Class RolesManager

Roles Manager service provides checking access actions against configured roles and their policies.

Hierarchy

  • RolesManager

Implements

Constructors

Properties

_baseDirectory: string
_loadPromise?: Promise<void>
_policyManager: PolicyManager
_roles?: {
    [key: string]: Policy[];
}

Type declaration

_validator: Validator

Methods

  • This function is used to check whether a user action is allowed against a defined Policy

    Returns

    Parameters

    • policy: Policy

      The Policy object that the action is to be checked against

    • userContext: KosmosUserContext<object>

      The corresponding users context

    • action: string

      The action which is to be checked

    Returns boolean

  • Returns Promise<{
        name: string;
        policies: string[];
    }[]>

Generated using TypeDoc