Add validation to ProviderConfigProperty in AuthenticatorFactory

Here I detail the use case where I need to validate authenticator fields:
I am using the privacy idea provider ( 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?


1 Like