This content has been marked as final.
Show 1 reply
-
1. Re: Wildfly 15.0.1 custom principal
djapal Jul 4, 2019 9:33 AM (in response to djapal)OK, so after a detailed search among forums/blog posts and the documentation, I think I found the solution.
I had to create a custom principal transformer which takes the NamedPrincipal class and creates a new object instance of the custom principal class.
This custom transformer is then registered as pre-realm-principal-transformer.
So
return new RealmIdentity() {
is now returning the original Principal object which is an instance of the custom principal class.