Type alias NodeAuthOptions

NodeAuthOptions: {
    authority?: string;
    authorityMetadata?: string;
    azureCloudOptions?: AzureCloudOptions;
    clientAssertion?: string;
    clientCapabilities?: string[];
    clientCertificate?: {
        privateKey: string;
        thumbprint: string;
        x5c?: string;
    };
    clientId: string;
    clientSecret?: string;
    cloudDiscoveryMetadata?: string;
    knownAuthorities?: string[];
    protocolMode?: ProtocolMode;
    skipAuthorityMetadataCache?: boolean;
}
  • clientId - Client id of the application.
  • authority - Url of the authority. If no value is set, defaults to https://login.microsoftonline.com/common.
  • knownAuthorities - Needed for Azure B2C and ADFS. All authorities that will be used in the client application. Only the host of the authority should be passed in.
  • clientSecret - Secret string that the application uses when requesting a token. Only used in confidential client applications. Can be created in the Azure app registration portal.
  • clientAssertion - Assertion string that the application uses when requesting a token. Only used in confidential client applications. Assertion should be of type urn:ietf:params:oauth:client-assertion-type:jwt-bearer.
  • clientCertificate - Certificate that the application uses when requesting a token. Only used in confidential client applications. Requires hex encoded X.509 SHA-1 thumbprint of the certificiate, and the PEM encoded private key (string should contain -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- )
  • protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
  • skipAuthorityMetadataCache - A flag to choose whether to use or not use the local metadata cache during authority initialization. Defaults to false.

Type declaration

  • Optional authority?: string
  • Optional authorityMetadata?: string
  • Optional azureCloudOptions?: AzureCloudOptions
  • Optional clientAssertion?: string
  • Optional clientCapabilities?: string[]
  • Optional clientCertificate?: {
        privateKey: string;
        thumbprint: string;
        x5c?: string;
    }
    • privateKey: string
    • thumbprint: string
    • Optional x5c?: string
  • clientId: string
  • Optional clientSecret?: string
  • Optional cloudDiscoveryMetadata?: string
  • Optional knownAuthorities?: string[]
  • Optional protocolMode?: ProtocolMode
  • Optional skipAuthorityMetadataCache?: boolean

Generated using TypeDoc