Table of Contents

Interface IProtectedResourcePolicyBuilder

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

Builds an AuthorizationPolicy from a protected resource policy name.

public interface IProtectedResourcePolicyBuilder

Remarks

Implement this interface to customize how policies are built from protected resource names, for example to add caching, logging, or additional requirements.

Methods

Build(string)

Builds an authorization policy from the given policy name.

AuthorizationPolicy? Build(string policyName)

Parameters

policyName string

The policy name in the format resource#scope.

Returns

AuthorizationPolicy

The built AuthorizationPolicy, or null if the name is not valid.