I have an already done j2ee(jsf, cdi, jpa) application that uses Apache Shiro perfectly, it work pretty well and I'm enjoying shiro annotations (hasRole, hasPermission, etc).
Now, this project have to be capable of authenticate with SiteMinder also, and here comes my question:
- How can I setup a Realm to handle SiteMinder Authentication without losing Shiro Authorization (seems that SiteMinder will give me username and rolename in HTTP Header)
- If I create a custom Realm, do the "doGetAuthenticationInfo" and log user in a Session, what will happen with SiteMinder Session?
- If I set "subject.getSession().setTimeout(1000);" in Shiro, what will happen with SiteMinder Session that already had a defined timeout?
My purpose is to user SiteMinder for Authentication (and control my session) and let Shiro just for Authorization. Shiro cannot intrude in SiteMinder Session.