[keycloak-user] Realm Resource Provider

Stian Thorgersen sthorger at redhat.com
Mon Jun 6 02:11:02 EDT 2016


You can try
session.getProvider(LoginFormsProvider.class).createForm("template.ftl")

On 1 June 2016 at 16:58, Bruno Palermo <palermo at pobox.com> wrote:

> Yes, it does. But it uses 'RequiredActionContext' context, how can I have
> access to this context inside 'RealmResourceProvider'?
>
> 'RealmResourceProviderFactory' create method is:
>
> @Override
> public RealmResourceProvider create(KeycloakSession session)
>
> ------------------------------
> Date: Wed, 1 Jun 2016 15:39:43 +0200
> Subject: Re: [keycloak-user] Realm Resource Provider
> From: sthorger at redhat.com
> To: palermo at pobox.com
> CC: keycloak-user at lists.jboss.org
>
>
> Try looking at the authenticator provider example I believe that does it
>
> On 1 June 2016 at 14:38, Bruno Palermo <palermo at pobox.com> wrote:
>
> Hi,
>
> I just create a custom resource provider. It's possible to render a
> freemarker template as response?
>
>
> https://github.com/keycloak/keycloak/blob/master/examples/providers/rest/src/main/java/org/keycloak/examples/rest/HelloResourceProvider.java
> <https://github.com/keycloak/keycloak/blob/master/server-spi/src/main/java/org/keycloak/services/resource/RealmResourceProvider.java>
>
>
> Thanks,
> Bruno
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160606/261c0e66/attachment.html 


More information about the keycloak-user mailing list