Skip to main content

ResourceDefinition Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Common.Constants

ResourceDefinition Class

Represents a resource with associated scopes, defining the permissions and access levels within an application. This record is typically used to configure and enforce authorization policies based on resource identifiers and their corresponding scopes.

public record ResourceDefinition : System.IEquatable<Abblix.Oidc.Server.Common.Constants.ResourceDefinition>

Inheritance System.Object → ResourceDefinition

Implements System.IEquatable<ResourceDefinition>

Constructors

ResourceDefinition(Uri, ScopeDefinition[]) Constructor

Represents a resource with associated scopes, defining the permissions and access levels within an application. This record is typically used to configure and enforce authorization policies based on resource identifiers and their corresponding scopes.

public ResourceDefinition(System.Uri Resource, params Abblix.Oidc.Server.Common.Constants.ScopeDefinition[] Scopes);

Parameters

Resource System.Uri

The identifier for the resource, often a unique name or URL representing the resource.

Scopes ScopeDefinition[]

A variable number of scope definitions associated with the resource. Each scope definition specifies a scope and its related claims, detailing the access levels and permissions granted.

Properties

ResourceDefinition.Resource Property

The identifier for the resource, often a unique name or URL representing the resource.

public System.Uri Resource { get; init; }

Property Value

System.Uri

ResourceDefinition.Scopes Property

A variable number of scope definitions associated with the resource. Each scope definition specifies a scope and its related claims, detailing the access levels and permissions granted.

public Abblix.Oidc.Server.Common.Constants.ScopeDefinition[] Scopes { get; init; }

Property Value

ScopeDefinition[]