Add validation to ProviderConfigProperty in AuthenticatorFactory

Hi,
Here I detail the use case where I need to validate authenticator fields:
I am using the privacy idea provider (https://github.com/privacyidea/keycloak-provider/releases) and I need to add fields to the configuration which should be validated by type (integer) and required.
Reviewing other examples, I found ComponentFactory that has a validateConfiguration method but I couldn’t configure the org.privacyidea.authenticator.PrivacyIDEAAuthenticatorFactory because it already extends from ProviderFactory.
Is there a way to validate ProviderConfigProperty configured within a class that implements org.keycloak.authentication.AuthenticatorFactory?

Thanks
Cesar

1 Like