AuthenticationSchemeOptions.ForwardDefaultSelector Property

Definition

Used to select a default scheme for the current request that authentication handlers should forward all authentication operations to by default. The default forwarding logic will check the most specific ForwardAuthenticate/Challenge/Forbid/SignIn/SignOut setting first, followed by checking the ForwardDefaultSelector, followed by ForwardDefault. The first non null result will be used as the target scheme to forward to.

C#
public Func<Microsoft.AspNetCore.Http.HttpContext,string> ForwardDefaultSelector { get; set; }
C#
public Func<Microsoft.AspNetCore.Http.HttpContext,string>? ForwardDefaultSelector { get; set; }
C#
public Func<Microsoft.AspNetCore.Http.HttpContext,string?>? ForwardDefaultSelector { get; set; }

Property Value

Applies to

Produkt Versioner
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0