Lingua

CookieRedirectEndpointConventionBuilderExtensions.AllowCookieRedirect<TBuilder> Method

Definition

Specifies that cookie-based authentication redirects are allowed for an endpoint using IAllowCookieRedirectMetadata. This is normally the default behavior, but it exists to override IDisableCookieRedirectMetadata no matter the order. When present, the cookie authentication handler will prefer browser login or access denied redirects over 401 and 403 status codes.

public static TBuilder AllowCookieRedirect<TBuilder>(this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member AllowCookieRedirect : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function AllowCookieRedirect(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder

Type Parameters

TBuilder

The type of endpoint convention builder.

Parameters

builder
TBuilder

The endpoint convention builder.

Returns

TBuilder

The original convention builder parameter.

Applies to