[keycloak-user] Arquillian / Remote Container / EJB Security

Lauer Markus Markus.Lauer at co-met.info
Wed Mar 23 08:01:04 EDT 2016


Hello,

We'd like to access secured EJBs (@RolesAllowed) from Arquillian tests.

While it is no problem to get a valid access token, we stuck at howto
"inject" the token into the session to actual access the secured EJBs.

Is it possible to use the JAAS LoginModule (LoginContext etc.) for this?

Can someone provide an example?

Please note: There is a solution with @RunAs. But this only allows to
specify one role at once.


Regards,

Markus.


________________________________

Zum Lesen der rechtlichen Hinweise dieser Mail, kopieren Sie bitte die aufgeführte URL in Ihren Browser oder folgen Sie dem Link.

http://disclaimer.tec-saar.de/co-met.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4628 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20160323/431729ea/attachment.bin 


More information about the keycloak-user mailing list