Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AuthorityFactory

Index

Methods

Static CreateInstance

  • CreateInstance(authorityUrl: string, validateAuthority: boolean): Authority
  • Create an authority object of the correct type based on the url Performs basic authority validation - checks to see if the authority is of a valid type (eg aad, b2c)

    Parameters

    • authorityUrl: string
    • validateAuthority: boolean

    Returns Authority

Static setKnownAuthorities

  • setKnownAuthorities(validateAuthority: boolean, knownAuthorities: Array<string>): void
  • Use when Authority is B2C and validateAuthority is set to True to provide list of allowed domains.

    Parameters

    • validateAuthority: boolean
    • knownAuthorities: Array<string>

    Returns void

Generated using TypeDoc