Add an AccessProvider
implementation for users of keycloak-restrict-client-auth
#310
Labels
AccessProvider
implementation for users of keycloak-restrict-client-auth
#310
description
Some customers use https://github.com/sventorben/keycloak-restrict-client-auth to restrict client authorization based on role or policy. They would like the ability to restrict based on organization membership or organization role.
This plugin has an SPI for adding access providers that we can implement. See:
See the plugin's example of restricting based on client roles:
We are not going to bundle the
keycloak-restrict-client-auth
library and the pom dependency should beoptional
.We should implement this as an EnvironmentDependentProviderFactory that tries to load a class from the library in order to see if it should return true for
isSupported
.2 implementations
organization membership
2 params (
ProviderConfigProperty
forgetConfigMetadata
)permitted if the user has an organization with getName that matches exactly (if isRegex is false) or matches the regex (if isRegex is false)
organization role
3 params (
ProviderConfigProperty
forgetConfigMetadata
)permitted if the user has an organization with getName that matches exactly (if isRegex is false) or matches the regex (if isRegex is false) AND the user has a role withing any of the matched organization that exactly matches the role getName.
The text was updated successfully, but these errors were encountered: