[keycloak-user] How to get current user in my application

Juraci Paixão Kröhling juraci at kroehling.de
Thu Oct 9 09:58:23 EDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Alexander,

On 10/09/2014 03:31 PM, Alexander Chriztopher wrote:
> yes i have done that in : standalone.xml :

I have a similar setup done for a pet project:

https://github.com/jpkrohling/cascaio/tree/master/backend/src/main/webapp/WEB-INF

Instead of adding SecurityDomain for each EJB, I've added a
jboss-ejb3.xml , applying the "keycloak" security domain to all EJBs
there.

And this is a sample EJB protected by Keycloak:

https://github.com/jpkrohling/cascaio/blob/master/backend/src/main/java/com/cascaio/backend/v1/boundary/admin/BatchService.java

Provided that your Wildfly is correctly configured, this is all that
should be required to get it to work.

- - Juca.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJUNpR/AAoJEDnJtskdmzLMFvAH+wQNr33+JPpe1l7FrZYLtYlI
KY+0riZ+nrGuVZqXAZ2YJuz+3wNuNESIPw12+6GHG/gbm/vfdYwTEmSD0jDub2aW
xNGPV/QXL1PAL8OwQ0nFG8tMMI1tAgQS1HyTzk0EtOPAccfvC/uBjkVpVIvJM3vj
xIlIW3kFmnZ2rFATNGVaGNwhTknA7GfsoySPyEu0hLR+yPmo/bocxQmmSgPYLSrn
ErR67JMhDeRxbH7yutJ89i+OchkViwdVF0iTySEPPVlugqtgSvJNsRDs+e4+PMXa
NSkBMWig/8J27TKvRG6kZu89IbwP/4CZ8hnFqFNBlNTQy3lp4ZWCFFacszBVSh8=
=CFPr
-----END PGP SIGNATURE-----


More information about the keycloak-user mailing list