共用方式為


UniqueJsonKeyClaimAction 類別

定義

ClaimAction,它會從具有指定索引鍵名稱的 json 使用者資料中選取最上層值,並將其新增為宣告。 如果 ClaimsIdentity 已經包含具有指定 ClaimType 的 Claim,則這個 no-ops。 如果找不到索引鍵或值是空的,這個無動作。

public ref class UniqueJsonKeyClaimAction : Microsoft::AspNetCore::Authentication::OAuth::Claims::JsonKeyClaimAction
public class UniqueJsonKeyClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.JsonKeyClaimAction
type UniqueJsonKeyClaimAction = class
    inherit JsonKeyClaimAction
Public Class UniqueJsonKeyClaimAction
Inherits JsonKeyClaimAction
繼承
UniqueJsonKeyClaimAction

建構函式

UniqueJsonKeyClaimAction(String, String, String)

建立新的 UniqueJsonKeyClaimAction。

屬性

ClaimType

取得建立宣告時要使用的 Value 值。

(繼承來源 ClaimAction)
JsonKey

要尋找 json 使用者資料的最上層索引鍵。

(繼承來源 JsonKeyClaimAction)
ValueType

取得建立宣告時要使用的 ValueType 值。

(繼承來源 ClaimAction)

方法

Run(JObject, ClaimsIdentity, String)

檢查指定的 userData json、判斷必要資料是否存在,並選擇性地將它新增為 ClaimsIdentity 上的新宣告。

Run(JObject, ClaimsIdentity, String)

檢查指定的 userData json、判斷必要資料是否存在,並選擇性地將它新增為 ClaimsIdentity 上的新宣告。

(繼承來源 JsonKeyClaimAction)
Run(JsonElement, ClaimsIdentity, String)

檢查指定的 userData JSON、判斷必要資料是否存在,並選擇性地將它新增為 ClaimsIdentity 上的新宣告。

Run(JsonElement, ClaimsIdentity, String)

檢查指定的 userData JSON、判斷必要資料是否存在,並選擇性地將它新增為 ClaimsIdentity 上的新宣告。

(繼承來源 JsonKeyClaimAction)

適用於