I'd like some suggestions about passing user name/login to report.
Our code currently uses SSO by passing an encrypted cookie, which is then read by class SimpleSecurityAdapter which extends LocalSecurityAdapter, and this all works fine. Now we need to pass the username to the reports so that the username can be incorporated into the SQL queries. Inside the SimpleSecurityAdapter, I am reading the username and putting that into the session object. I'm unsure how the reports can read the session object and get the username from the session object. ? Or is there a better way of passing the username to the reports so that the username can be incorporated into the SQL query.
I have tried using the below devshare post. If I try to get the username using this method:
http://www.birt-exchange.org/org/devshare/designing-birt-reports/122-filter-birt-jdbc-query/
The username comes out as "anonymous".
Any comments, tips, recommendations would be appreciated.
Thanks,
A.C.