SecurityStampValidator.ValidateAsync<TValidator> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用來根據使用者的預存安全性戳記來驗證 TwoFactorUserIdScheme 和 TwoFactorRememberMeScheme Cookie。
public:
generic <typename TValidator>
where TValidator : Microsoft::AspNetCore::Identity::ISecurityStampValidator static System::Threading::Tasks::Task ^ ValidateAsync(Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^ context);
public static System.Threading.Tasks.Task ValidateAsync<TValidator> (Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext context) where TValidator : Microsoft.AspNetCore.Identity.ISecurityStampValidator;
static member ValidateAsync : Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext -> System.Threading.Tasks.Task (requires 'Validator :> Microsoft.AspNetCore.Identity.ISecurityStampValidator)
Public Shared Function ValidateAsync(Of TValidator As ISecurityStampValidator) (context As CookieValidatePrincipalContext) As Task
類型參數
- TValidator
參數
- context
- CookieValidatePrincipalContext
包含 ClaimsPrincipal 要驗證之 和 AuthenticationProperties 的內容。