Description
We have implemented an oidc module on top of jaspic.
While the call of getUserPrincipal().getName(); delivers the expected user
The user principal is not propagated from the webcontainer to the ejb container.
Calling ctx.getCallerPrincipal().getName(); in a ejb delivers ,,anonymous''.
We have verified it with other application server (e.g. tomee with openejb) where it works fine.
I didn't find anything in the documentation that you need additional configurations for the ejb container. I also can't find a reason why it should not be automatically propagated to the ejb-container, therefore i think it is a bug.