AppServicesAuthenticationTokenAcquisition.ReplyForbiddenWithWwwAuthenticateHeader Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Usato nelle API Web (che pertanto non può avere un'interazione con l'utente). Risponde al client tramite HttpResponse inviando un messaggio 403 (accesso negato) e popolando wwwAuthenticateHeaders in modo che il client possa attivare un'interazione con l'utente in modo che l'utente possa fornire il consenso a più ambiti.
public void ReplyForbiddenWithWwwAuthenticateHeader(System.Collections.Generic.IEnumerable<string> scopes, Microsoft.Identity.Client.MsalUiRequiredException msalServiceException, string? authenticationScheme, Microsoft.AspNetCore.Http.HttpResponse? httpResponse = default);
abstract member ReplyForbiddenWithWwwAuthenticateHeader : seq<string> * Microsoft.Identity.Client.MsalUiRequiredException * string * Microsoft.AspNetCore.Http.HttpResponse -> unit
override this.ReplyForbiddenWithWwwAuthenticateHeader : seq<string> * Microsoft.Identity.Client.MsalUiRequiredException * string * Microsoft.AspNetCore.Http.HttpResponse -> unit
Public Sub ReplyForbiddenWithWwwAuthenticateHeader (scopes As IEnumerable(Of String), msalServiceException As MsalUiRequiredException, authenticationScheme As String, Optional httpResponse As HttpResponse = Nothing)
Parametri
- scopes
- IEnumerable<String>
Ambiti a cui fornire il consenso.
- msalServiceException
- MsalUiRequiredException
MsalUiRequiredException attivare la sfida.
- authenticationScheme
- String
Schema di autenticazione. Se null, userà OpenIdConnectDefault.AuthenticationScheme se viene chiamato da un'app Web e JwtBearerDefault.AuthenticationScheme se viene chiamato da un'API Web.
- httpResponse
- HttpResponse
Oggetto HttpResponse da aggiornare.