Table of Contents

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 string

Name 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

Dictionary<string, string>

DisplayName

Display name

public string? DisplayName { get; init; }

Property Value

string

Name

Resource name

public string Name { get; }

Property Value

string

Owner

When set, will be used to enforce ownership at the time of the request

public string? Owner { get; set; }

Property Value

string

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

string

Examples

urn:workspace-authz:resource:workspaces