[keycloak-user] Custom JAAS login module for Keyclock auth
Marek Posolda
mposolda at redhat.com
Thu Feb 15 03:55:48 EST 2018
Hi,
instead of add something to keycloak modules directly and rebuild them
etc, it's usually much better to have your Java classes in the separate
module and have dependency on Keycloak adapter modules if needed. For
inspiration, you can maybe take a look at the another example for EJB
client I wrote some time ago. It uses JAAS login module on server side:
https://github.com/mposolda/keycloak-remote-ejb
Marek
On 15/02/18 04:59, valsaraj pv wrote:
> Hi Marek,
>
> Yes, I see this but I want to include custom logic in my existing
> login module as well. So how to create a custom keycloak login module?
> Currently I have integrated keycloak using wildfly adapter. Should I
> rebuild adapter with my custom module? If I add custom adapter with my
> ear, I want dependency jars of Keycloak to build tha custom login
> module. What is recommended to get the Keycloak jars (not using maven)?
>
> Thanks!
>
> On Thu, Feb 15, 2018 at 3:41 AM, Marek Posolda <mposolda at redhat.com
> <mailto:mposolda at redhat.com>> wrote:
>
> We have some JAAS login modules. See [1]. You can either re-use
> them or create something similar based on your needs.
>
> [1]
> http://www.keycloak.org/docs/3.2/securing_apps/topics/oidc/java/jaas.html
> <http://www.keycloak.org/docs/3.2/securing_apps/topics/oidc/java/jaas.html>
>
> Marek
>
>
> On 12/02/18 15:04, valsaraj pv wrote:
>
> Hi,
>
> I would like to know how to write custom JAAS login module for
> Keyclock
> auth.
>
> Thanks!
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> <mailto:keycloak-user at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/keycloak-user
> <https://lists.jboss.org/mailman/listinfo/keycloak-user>
>
>
>
>
>
>
> --
> Life is like this: "Just when we get all the answers of life.... God
> changes the question paper....
>
> Valsaraj Viswanathan
More information about the keycloak-user
mailing list