Class ResourceAccessRequirement
- Namespace
- Keycloak.AuthServices.Authorization.Requirements
- Assembly
- Keycloak.AuthServices.Authorization.dll
Resource requirement
public class ResourceAccessRequirement : IAuthorizationRequirement
- Inheritance
-
ResourceAccessRequirement
- Implements
- Inherited Members
Constructors
ResourceAccessRequirement(string?, params string[])
Constructs
public ResourceAccessRequirement(string? resource, params string[] roles)
Parameters
Properties
Resource
Client/Resource name
public string? Resource { get; set; }
Property Value
Roles
Roles
public IReadOnlyCollection<string> Roles { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.