Class AuthorizeAttribute
- Namespace
- Cratis.Arc.Authorization
- Assembly
- Cratis.Arc.Core.dll
Specifies that the class or method that this attribute is applied to requires authorization.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class AuthorizeAttribute : Attribute
- Inheritance
-
AuthorizeAttribute
- Derived
- Inherited Members
- Extension Methods
Constructors
AuthorizeAttribute()
public AuthorizeAttribute()
Properties
AuthenticationSchemes
Gets or sets a comma delimited list of schemes from which user information is constructed.
public string? AuthenticationSchemes { get; set; }
Property Value
Policy
Gets or sets the policy name that determines access to the resource.
public string? Policy { get; set; }
Property Value
Roles
Gets or sets a comma delimited list of roles that are allowed to access the resource.
public string? Roles { get; set; }