Class IgnoreProtectedResourceAttribute
- Namespace
- Keycloak.AuthServices.Authorization
- Assembly
- Keycloak.AuthServices.Authorization.dll
Specifies that the class or method that this attribute is applied to requires the specified authorization.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class IgnoreProtectedResourceAttribute : Attribute, IProtectedResourceData
- Inheritance
-
IgnoreProtectedResourceAttribute
- Implements
- Inherited Members
Constructors
IgnoreProtectedResourceAttribute()
Initializes a new instance of the ProtectedResourceAttribute class with the specified policy.
public IgnoreProtectedResourceAttribute()
IgnoreProtectedResourceAttribute(string)
Initializes a new instance of the ProtectedResourceAttribute class with the specified policy.
public IgnoreProtectedResourceAttribute(string resource)
Parameters
resource
string
Properties
Resource
Gets or sets resource name
public string Resource { get; }
Property Value
Scopes
Get or sets scopes
public string[]? Scopes { get; }
Property Value
- string[]