[keycloak-dev] Configurable User Federation Providers

Marek Posolda mposolda at redhat.com
Mon Jan 4 08:26:44 EST 2016


+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 should
> be 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 to
> specify custom labels, help texts, default options, etc.
>
> it would be great if it were possible to configure custom keycloak 
> federation provider factories like
> custom ConfigurableAuthenticatorFactory. For the latter one can 
> specify a list of configuration options
> via 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20160104/9942e615/attachment.html 


More information about the keycloak-dev mailing list