Options
All
  • Public
  • Public/Protected
  • All
Menu

External module security

Index

Variables

ANONYMOUS_AUTHORIZATION

ANONYMOUS_AUTHORIZATION: Authorization

immutable Authorization representing the anonymous user.

type

{Authorization}

ROLE_ADMIN

ROLE_ADMIN: string

Administrator's role name. Users in this role should have full access to all services in the system.

ROLE_AUTHENTICATED

ROLE_AUTHENTICATED: string

Virtual role for all authenticated users.

USER_ANYONE

USER_ANYONE: string

The name of the predefined role, user.anyone, that all users and groups belong to.

Functions

cloneCredentials

  • cloneCredentials<CredentialsT>(credentials: CredentialsT): CredentialsT
  • Type parameters

    Parameters

    • credentials: CredentialsT

    Returns CredentialsT

freezeAuthorization

  • turns the object deeply immutable.

    internal

    for library use only.

    Parameters

    Returns Authorization

    authorization for convenience.

freezeCredentials

  • freezeCredentials<CredentialsT>(credentials: CredentialsT): CredentialsT
  • Type parameters

    Parameters

    • credentials: CredentialsT

    Returns CredentialsT

freezeOrganization

  • turns the object deeply immutable.

    internal

    for library use only.

    Parameters

    Returns Organization

    organization for convenience.

freezeUser

  • turns the object deeply immutable.

    internal

    for library use only.

    Parameters

    • user: User

      to freeze.

    Returns User

    user for convenience.

getCurrentAuthorization

getCurrentOrganization

  • gets the Organization in effect.

    Parameters

    • Rest ...fields: string[]

      of interest.

    Returns Organization

    in effect, may be null.

getCurrentServer

  • gets the current Server.

    internal

    for library use only.

    Returns Server

    state parameter.

getCurrentUser

  • getCurrentUser(...fields: string[]): User
  • gets the User in effect.

    Parameters

    • Rest ...fields: string[]

      of interest.

    Returns User

    in effect, may be null.

setCurrentOrganization

setCurrentServer

  • setCurrentServer(server: Server): void
  • sets the current Server.

    internal

    for library use only.

    Parameters

    • server: Server

      to set state of.

    Returns void

Generated using TypeDoc