[keycloak-user] Realm Resource Provider
Bruno Palermo
palermo at pobox.com
Mon Jun 6 11:48:27 EDT 2016
A little tweak needed, because I had to create a new template since I can use the existing one, but it works.
Thanks!
Date: Mon, 6 Jun 2016 08:11:02 +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
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
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/df2e9ce4/attachment.html
More information about the keycloak-user
mailing list