Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/infrastructure/SecurityUtils"

Index

Functions

getClaimByTypeAndValue

  • getClaimByTypeAndValue(identity: Identity, type: string, value: string): Claim
  • Get a claim based on the claim type and value.

    Parameters

    • identity: Identity

      The identity in which to search for claims

    • type: string

      The claim type to find

    • value: string

      The claim value to find

    Returns Claim

getClaimsByType

  • Get a claim based on the claim type.

    Parameters

    • identity: Identity

      The identity in which to search for claims

    • type: string

      The claim type to find

    Returns Claim[]

getClaimsByValue

  • Get a claim based on the claim value.

    Parameters

    • identity: Identity

      The identity in which to search for claims

    • value: string

      The claim value to find

    Returns Claim[]

getIdentity

  • Get an identity based on the authentication type.

    Parameters

    • authenticationType: string

      The authentication type of the identity to find

    • app: ViewerApplication

      The current application instance

    Returns Identity

hasPrivilegeClaim

  • hasPrivilegeClaim(identity: Identity, value: string): boolean
  • Check if the identity has a given privilege.

    Parameters

    • identity: Identity

      The identity in which to search the claims for a specific privilege

    • value: string

      The privilege value to find

    Returns boolean