-
Bug
-
Resolution: Done
-
Major
-
7.2.1.GA
-
None
-
-
-
-
-
-
+
-
Workaround Exists
-
-
I set up an application to reproduce following our documentation First I tried with IDP only and got success, then I tried with SP and it failed. This is an application that has a form to authenticate and a restful endpoint that invokes a local EJB method that can only be executed by a specific role.
What happens is that I'm able to authenticate but even though my user contains the role, I receive this error when the EJB is invoked:
"2019-05-17 13:37:35,618 ERROR [org.jboss.as.ejb3.invocation] (default task-2) WFLYEJB0034: EJB Invocation failed on component SecuredStatelessBean for method public void testapp.ejb.SecuredStatelessBean.testMethod(): javax.ejb.EJBAccessException: WFLYEJB0364: Invocation on method: public void testapp.ejb.SecuredStatelessBean.testMethod() of bean: SecuredStatelessBean is not allowed"
If I use @PermitAll and read the context in EJB side, there is no evidence of the role, but the user is retrieved correctly.
Attached the applications and its source code.
- blocks
-
JBEAP-16958 [GSS](7.2.z) PLINK-793 [picketlink bindings part]- EJB Security Context Propagation in Service Provider
- Closed
-
JBEAP-16998 (7.2.z) Integration test for JBEAP-16924 and JBEAP-16958
- Closed
- clones
-
PLINK-793 EJB Security Context Propagation in Service Provider
- Open
- is cloned by
-
JBEAP-16958 [GSS](7.2.z) PLINK-793 [picketlink bindings part]- EJB Security Context Propagation in Service Provider
- Closed
-
JBEAP-17001 [GSS](7.2.z) Regression Test for JBEAP-16924
- Closed
- links to