AuthorizeAttribute AuthorizeAttribute AuthorizeAttribute Class

Definition

Specifies that the class or method that this attribute is applied to requires the specified authorization.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public class AuthorizeAttribute : Attribute, Microsoft.AspNetCore.Authorization.IAuthorizeData
type AuthorizeAttribute = class
    inherit Attribute
    interface IAuthorizeData
Public Class AuthorizeAttribute
Inherits Attribute
Implements IAuthorizeData
Inheritance
AuthorizeAttributeAuthorizeAttributeAuthorizeAttribute
Attributes
Implements

Constructors

AuthorizeAttribute() AuthorizeAttribute() AuthorizeAttribute()

Initializes a new instance of the AuthorizeAttribute class.

AuthorizeAttribute(String) AuthorizeAttribute(String) AuthorizeAttribute(String)

Initializes a new instance of the AuthorizeAttribute class with the specified policy.

Properties

ActiveAuthenticationSchemes ActiveAuthenticationSchemes ActiveAuthenticationSchemes

Gets or sets a comma delimited list of schemes from which user information is constructed.

AuthenticationSchemes AuthenticationSchemes AuthenticationSchemes

Gets or sets a comma delimited list of schemes from which user information is constructed.

Policy Policy Policy

Gets or sets the policy name that determines access to the resource.

Roles Roles Roles

Gets or sets a comma delimited list of roles that are allowed to access the resource.

Applies to