Language

AppServicesAuthenticationTokenAcquisition.ReplyForbiddenWithWwwAuthenticateHeaderAsync メソッド

定義

Web API で使用されます (そのため、ユーザーとの対話はできません)。 HttpResponse を介してクライアントに応答するには、403 (禁止) を送信し、wwwAuthenticateHeaders を設定して、クライアントがユーザーとの対話をトリガーして、ユーザーがより多くのスコープに同意できるようにします。

public System.Threading.Tasks.Task ReplyForbiddenWithWwwAuthenticateHeaderAsync(System.Collections.Generic.IEnumerable<string> scopes, Microsoft.Identity.Client.MsalUiRequiredException msalServiceException, Microsoft.AspNetCore.Http.HttpResponse? httpResponse = default);
abstract member ReplyForbiddenWithWwwAuthenticateHeaderAsync : seq<string> * Microsoft.Identity.Client.MsalUiRequiredException * Microsoft.AspNetCore.Http.HttpResponse -> System.Threading.Tasks.Task
override this.ReplyForbiddenWithWwwAuthenticateHeaderAsync : seq<string> * Microsoft.Identity.Client.MsalUiRequiredException * Microsoft.AspNetCore.Http.HttpResponse -> System.Threading.Tasks.Task
Public Function ReplyForbiddenWithWwwAuthenticateHeaderAsync (scopes As IEnumerable(Of String), msalServiceException As MsalUiRequiredException, Optional httpResponse As HttpResponse = Nothing) As Task

パラメーター

scopes
IEnumerable<String>

同意するスコープ。

msalServiceException
MsalUiRequiredException

MsalUiRequiredException チャレンジをトリガーします。

httpResponse
HttpResponse

更新する HttpResponse 。

返品

非同期操作を表す Task 。

実装

適用対象