Class Resource
- Namespace
- Keycloak.AuthServices.Sdk.Protection.Models
- Assembly
- Keycloak.AuthServices.Sdk.dll
public class Resource
- Inheritance
-
Resource
- Inherited Members
Constructors
Resource(string, string[])
Constructs resource
public Resource(string name, string[] scopes)
Parameters
name
stringName of the resource
scopes
string[]Scope of the resource. Usually, it is in a form of verb
Properties
Attributes
Resource attributes
public Dictionary<string, string> Attributes { get; init; }
Property Value
DisplayName
Display name
public string? DisplayName { get; init; }
Property Value
Name
Resource name
public string Name { get; }
Property Value
Owner
When set, will be used to enforce ownership at the time of the request
public string? Owner { get; set; }
Property Value
OwnerManagedAccess
When set, will enforce owner-managed-access.
public bool? OwnerManagedAccess { get; set; }
Property Value
- bool?
Scopes
Resource scopes
[JsonPropertyName("resource_scopes")]
public string[] Scopes { get; }
Property Value
- string[]
Type
Resource type
public string? Type { get; init; }
Property Value
Examples
urn:workspace-authz:resource:workspaces