[keycloak-dev] Theme resource provider - ability for custom authenticators to load additional templates
Dmitry Telegin
mitya at cargosoft.ru
Tue Feb 6 12:42:33 EST 2018
Hi Stian, nice feature! Is it limited to login themes?
BTW the correct link is https://github.com/stianst/keycloak-experimenta
l/tree/master/fido-u2f
Also nice to hear that the work has finally started on U2F, it's indeed
a must-have feature today. Is it slated for 4.0.0?
Dmitry
> I was experimenting with a custom authenticator and found it annoying that
> I had to copy templates manually to the themes directory.
>
> To resolve this I added a Theme Resource Provider SPI.
>
> A theme resource provider can provide additional templates and/or resources
> alongside the custom authenticator.
>
> Themes are always searched first for templates and resources. Template
> resource providers are only searched if not found in themes. This is
> important as it allows a theme to override the templates and/or resources
> provided by a theme resource provider.
>
> The code is ready in the PR https://github.com/keycloak/keycloak/pull/4971
>
> For an example on how it's used take a look at
> https://github.com/stianst/keycloak-experimental/tree/master/u2f.
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
More information about the keycloak-dev
mailing list