Table of Contents

Interface IProtectedResourceData

Namespace
Keycloak.AuthServices.Authorization
Assembly
Keycloak.AuthServices.Authorization.dll

Defines the set of data required to apply authorization rules to a resource.

public interface IProtectedResourceData

Properties

Audience

Gets the Keycloak client ID of the resource server to use as the UMA audience parameter. When null, the global KeycloakAuthorizationServerOptions.Resource value is used.

string? Audience { get; }

Property Value

string

ResolverType

Gets the type of IParameterResolver used to resolve resource template parameters. When null, the default RouteParameterResolver is used.

Type? ResolverType { get; }

Property Value

Type

Resource

Gets or sets resource name

string Resource { get; }

Property Value

string

Scopes

Get or sets scopes

string[]? Scopes { get; }

Property Value

string[]

Methods

GetScopesExpression()

string GetScopesExpression()

Returns

string