AllowCookieRedirectAttribute Class

Definition

Specifies that cookie-based authentication redirects are allowed for an endpoint. 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.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)]
public sealed class AllowCookieRedirectAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IAllowCookieRedirectMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)>]
type AllowCookieRedirectAttribute = class
    inherit Attribute
    interface IAllowCookieRedirectMetadata
Public NotInheritable Class AllowCookieRedirectAttribute
Inherits Attribute
Implements IAllowCookieRedirectMetadata
Inheritance
AllowCookieRedirectAttribute
Attributes
Implements

Constructors

Name Description
AllowCookieRedirectAttribute()

Applies to