Share via


Results.Challenge(AuthenticationProperties, IList<String>) メソッド

定義

実行時に を IResult 呼び出す を作成します ChallengeAsync(HttpContext, String, AuthenticationProperties)

このメソッドの動作は、使用中の によって IAuthenticationService 異なります。 Status401UnauthorizedStatus403Forbidden は、可能性の高い状態の結果の 1 つです。

public static Microsoft.AspNetCore.Http.IResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties = default, System.Collections.Generic.IList<string>? authenticationSchemes = default);
static member Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties * System.Collections.Generic.IList<string> -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Challenge (Optional properties As AuthenticationProperties = Nothing, Optional authenticationSchemes As IList(Of String) = Nothing) As IResult

パラメーター

properties
AuthenticationProperties

AuthenticationProperties 認証チャレンジの実行に使用されます。

authenticationSchemes
IList<String>

チャレンジする認証スキーム。

戻り値

応答用に作成された IResult

適用対象