Share via


TypedResults.Challenge(AuthenticationProperties, IList<String>) 메서드

정의

ChallengeHttpResult 실행에서 를 호출하는 을 만듭니다ChallengeAsync(HttpContext, String, AuthenticationProperties).

이 메서드의 동작은 사용 중인 에 IAuthenticationService 따라 달라집니다. Status401UnauthorizedStatus403Forbidden 는 가능성이 상태 결과 중 하나입니다.

public static Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult 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.HttpResults.ChallengeHttpResult
Public Shared Function Challenge (Optional properties As AuthenticationProperties = Nothing, Optional authenticationSchemes As IList(Of String) = Nothing) As ChallengeHttpResult

매개 변수

properties
AuthenticationProperties

AuthenticationProperties 인증 챌린지를 수행하는 데 사용됩니다.

authenticationSchemes
IList<String>

이의를 제기할 인증 체계입니다.

반환

응답에 대해 만들어진 ChallengeHttpResult 입니다.

적용 대상