JaasAuthenticationProvider Jaas How to Pass Organization to JasperServer

0

Dear all,

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

Kolja

kolja.ehlers@iconplc.com's picture
Joined: Aug 12 2008 - 2:47am
Last seen: 2 years 7 months ago

1 Answer:

0

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.

 

kolja.ehlers@iconplc.com's picture
Joined: Aug 12 2008 - 2:47am
Last seen: 2 years 7 months ago

Hi, I know it is an old post, but I am trying to do the same thing and cannot find enough information shared in the same place. Could you provide me the solution?
Thanks!

gbdenaro - 5 years 8 months ago
Feedback
randomness