AllowCookieRedirectAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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() | |