Options
All
  • Public
  • Public/Protected
  • All
Menu

The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the endpoint. It will store the pertinent config data in this object for use during token calls.

Hierarchy

  • Authority

Index

Constructors

constructor

Properties

regionDiscoveryMetadata

regionDiscoveryMetadata: RegionDiscoveryMetadata

Accessors

authorityType

authorizationEndpoint

  • get authorizationEndpoint(): string

canonicalAuthority

  • get canonicalAuthority(): string
  • set canonicalAuthority(url: string): void

canonicalAuthorityUrlComponents

  • get canonicalAuthorityUrlComponents(): IUri

deviceCodeEndpoint

  • get deviceCodeEndpoint(): string

endSessionEndpoint

  • get endSessionEndpoint(): string

hostnameAndPort

  • get hostnameAndPort(): string

options

protocolMode

selfSignedJwtAudience

  • get selfSignedJwtAudience(): string

tenant

  • get tenant(): string

tokenEndpoint

  • get tokenEndpoint(): string

Methods

discoveryComplete

  • discoveryComplete(): boolean

getPreferredCache

  • getPreferredCache(): string

isAlias

  • isAlias(host: string): boolean

resolveEndpointsAsync

  • resolveEndpointsAsync(): Promise<void>

Static buildRegionalAuthorityString

  • buildRegionalAuthorityString(host: string, region: string, queryString?: string): string

Static createCloudDiscoveryMetadataFromHost

  • createCloudDiscoveryMetadataFromHost(host: string): CloudDiscoveryMetadata

Static generateAuthority

  • generateAuthority(authorityString: string, azureCloudOptions?: AzureCloudOptions): string

Static getCloudDiscoveryMetadataFromNetworkResponse

  • getCloudDiscoveryMetadataFromNetworkResponse(response: CloudDiscoveryMetadata[], authority: string): CloudDiscoveryMetadata
  • Searches instance discovery network response for the entry that contains the host in the aliases list

    Parameters

    • response: CloudDiscoveryMetadata[]
    • authority: string

    Returns CloudDiscoveryMetadata

Static isPublicCloudAuthority

  • isPublicCloudAuthority(host: string): boolean

Static replaceWithRegionalInformation

  • replaceWithRegionalInformation(metadata: OpenIdConfigResponse, azureRegion: string): OpenIdConfigResponse
  • Replace the endpoints in the metadata object with their regional equivalents.

    Parameters

    • metadata: OpenIdConfigResponse

      OpenIdConfigResponse

    • azureRegion: string

      string

    Returns OpenIdConfigResponse

Generated using TypeDoc