Language

HttpConnectionDispatcherOptions.OnAuthenticationRefresh Property

Definition

An optional callback invoked when the /refresh endpoint has successfully re-authenticated the request but before the connection's user is replaced. Return true to accept the new principal, or false to reject the refresh. When rejected, the endpoint responds with HTTP 403 and the connection's current user remains in place.

public Func<Microsoft.AspNetCore.Http.Connections.AuthenticationRefreshContext,System.Threading.Tasks.ValueTask<bool>>? OnAuthenticationRefresh { get; set; }
member this.OnAuthenticationRefresh : Func<Microsoft.AspNetCore.Http.Connections.AuthenticationRefreshContext, System.Threading.Tasks.ValueTask<bool>> with get, set
Public Property OnAuthenticationRefresh As Func(Of AuthenticationRefreshContext, ValueTask(Of Boolean))

Property Value

Applies to