I have gotten external authentication to work with my LoginModule implementation using the JaasAuthenticationProvider. The login will create a Subject object that holds a set of Principals. Now what I am wondering how do I add an Organization to my Subject in a way that JasperServer will recognize it.
Similar question for the ROLES but I guess this is what the authorityGranters is for. With that class I can map our system ROLES to Jasper Roles if I understand correctly. As mentioned I just have not tried this yet.
Thanks for the Help
So I got this now working by implementing a custom JaasAuthenticationProvider and not returning only request.getPrincipal() but a UserDetails Object containing all the nice stuff. Then I worte a custom ExternalUserProcessor to plug all my user detail back into the JasperServer MetaDataUser.