+1
I think the only reason why UserFederationProvider is not using ConfiguredProvider is, that ConfiguredProvider was introduced later than UserFederationProvier and there wasn't time for refactoring yet... Feel free to create JIRA for this.
Marek
On 04/01/16 12:11, Thomas Darimont wrote:
Hello list and happy new year!
I'm implementing a custom org.keycloak.models.UserFederationProviderFactory which shouldbe configurable via the keycloak admin console.
The possible configuration are currently specified via the "Set<String> getConfigurationOptions()"method of the UserFederationProviderFactory interface,
Since the "Set<String" only describes the raw option names there seems to be no way tospecify custom labels, help texts, default options, etc.
it would be great if it were possible to configure custom keycloak federation provider factories likecustom ConfigurableAuthenticatorFactory. For the latter one can specify a list of configuration optionsvia the "List<ProviderConfigProperty> getConfigProperties()" method on the"org.keycloak.provider.ConfiguredProvider" interface.
"org.keycloak.provider.ProviderConfigProperty" has name, label, helptext, type and defaultValue which is all I need.
It seems that currently "org.keycloak.services.resources.admin.UserFederationProvidersResource.getProvider(String)"isn't aware of the "ConfiguredProvider" interface. I guess making it aware of ConfiguredProvider with some additional UI tweaks should do the trick.
What do you guys think?
Cheers,Thomas
_______________________________________________ keycloak-dev mailing list keycloak-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/keycloak-dev