AppServicesAuthenticationTokenAcquisition.ReplyForbiddenWithWwwAuthenticateHeaderAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 。