Hello,
I am trying to migrate our legacy JAAS login modules into elytron. So far I found out that there is no way to use custom principal object with elytron (I tried that with JAAS realm first, than with custom realm, no luck).
I also tried another way to get my custom principal to the application through session attribute, but the way to get the request object inside login module, which was possible earlier with:
PolicyContext.getContext("javax.servlet.http.HttpServletRequest")
is no longer working.
I found here how to populate security identity with attributes, which would be some kind of a workaround, but can I get this security identity inside JSP application? The examples I found were using EJB and I didn´t find any way to get it from JSP.
So for it seems to me, that there is no way to migrate our legacy security solution without complete rewrite of our application.
Thanks for any suggestions.