does anyone know how I do to get the Principal object in the persistence layer?
happens that my application can not depend on request.getUserPrincipal coming fromservlet api.
need to somehow retrieve the security context and then get the authenticated user.
I tried to do the following:
but, getSubject is returning a null object.
any suggestions?
this problem not has a perfect solution.
but a possible solution for this is: https://issues.jboss.org/browse/EJBTHREE-1756
this discussion explain the motivation: https://community.jboss.org/message/531986#531986