Lingua

AppServicesAuthenticationTokenAcquisition.ReplyForbiddenWithWwwAuthenticateHeader Metodo

Definizione

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.

Implementazioni

Si applica a