語言

MicrosoftIdentityAuthenticationMessageHandlerOptions 類別

定義

選項傳入給 Microsoft Identity 訊息處理器。

public class MicrosoftIdentityAuthenticationMessageHandlerOptions : Microsoft.Identity.Web.MicrosoftIdentityAuthenticationBaseOptions, ICloneable
type MicrosoftIdentityAuthenticationMessageHandlerOptions = class
    inherit MicrosoftIdentityAuthenticationBaseOptions
    interface ICloneable
Public Class MicrosoftIdentityAuthenticationMessageHandlerOptions
Inherits MicrosoftIdentityAuthenticationBaseOptions
Implements ICloneable
繼承
MicrosoftIdentityAuthenticationMessageHandlerOptions
實作

建構函式

名稱 Description
MicrosoftIdentityAuthenticationMessageHandlerOptions()

選項傳入給 Microsoft Identity 訊息處理器。

屬性

名稱 Description
AuthenticationScheme

認證方案。 若為空,則使用 OpenIdConnectDefault.AuthenticationScheme(從網頁應用程式呼叫),若從網頁 API 呼叫則使用 JwtBearerDefault.AuthenticationScheme。

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)
IsProofOfPossessionRequest

修改代幣取得請求,使所取得代幣成為持有證明代幣(PoP),而非持有人代幣。 PoP 標記與持有憑證類似,但綁定於 HTTP 請求及加密金鑰,MSAL 可管理此金鑰。 參見 https://aka.ms/msal-net-pop。 設為 true,可以自動啟用 PoP 標記。

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)
Scopes

呼叫下游網頁 API 所需的空間分隔範圍。 例如「user.read mail.read」。

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)
Tenant

[可選] 租戶識別碼。 此方法用於特定情境,應用程式需代表多個租戶中的使用者呼叫下游網頁 API。 它大多會從程式碼中使用,而非從設定中取得。

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)
TokenAcquisitionOptions

選項傳遞來建立標記擷取物件,該物件呼叫至 MSAL .NET。

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)
UserFlow

[可選]。 使用者流程(以 B2C 下游網頁 API 為例)。 若未指定,B2C 下游網頁 API 將以預設的使用者流程呼叫。DefaultUserFlow

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)

方法

名稱 Description
Clone()

複製選項(以便能覆蓋它們)。

GetScopes()

還望遠鏡。

(繼承來源 MicrosoftIdentityAuthenticationBaseOptions)

明確介面實作

名稱 Description
ICloneable.Clone()

複製選項(以便能覆蓋它們)。

適用於