NodeAuthOptions type
- clientId - アプリケーションのクライアント ID。
- authority - 機関の URL。 値が設定されていない場合、既定値は
https://login.microsoftonline.com/common。
- knownAuthorities - Azure B2C および ADFS に必要です。 クライアント アプリケーションで使用されるすべての機関。 権限のホストのみを渡す必要があります。
- clientSecret - トークンを要求するときにアプリケーションが使用するシークレット文字列。 機密クライアント アプリケーションでのみ使用されます。 Azure アプリ登録ポータルで作成できます。
- clientAssertion - アサーション文字列またはアプリケーションがトークンを要求するときに使用するアサーション文字列を返すコールバック関数を含む ClientAssertion オブジェクトと、アサーションの型 (urn:ietf:params:oauth:client-assertion-type:jwt-bearer)。 機密クライアント アプリケーションでのみ使用されます。
- clientCertificate - トークンを要求するときにアプリケーションが使用する証明書。 機密クライアント アプリケーションでのみ使用されます。 証明書の 16 進数でエンコードされた X.509 SHA-1 または SHA-256 拇印と、PEM でエンコードされた秘密キー (文字列には -----BEGIN 秘密キー----- ... -----END 秘密キー-----が含まれている必要があります) が必要です。
- protocolMode - msal が従うプロトコルを表す列挙型。 適切なエンドポイントを構成するために使用されます。
- skipAuthorityMetadataCache - 権限の初期化中にローカル メタデータ キャッシュを使用するかどうかを選択するフラグ。 既定値は false です。
- encodeExtraQueryParams - 要求 URL に追加のクエリ パラメーターをエンコードするかどうかを選択するフラグ。 既定値は false です。
type NodeAuthOptions = {
authority?: string
authorityMetadata?: string
azureCloudOptions?: AzureCloudOptions
clientAssertion?: string | ClientAssertionCallback
clientCapabilities?: string[]
clientCertificate?: {
privateKey: string
thumbprint?: string
thumbprintSha256?: string
x5c?: string
}
clientId: string
clientSecret?: string
cloudDiscoveryMetadata?: string
encodeExtraQueryParams?: boolean
knownAuthorities?: string[]
protocolMode?: ProtocolMode
skipAuthorityMetadataCache?: boolean
}