Hi Jérôme,
I tried doing what you suggested but it didn't work. I am sure I am doing
something wrong here. So, this is what I have in my shiro-context.xml:
<bean id="shiroFilter"
class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
<property name="securityManager" ref="securityManager" />
<property name="loginUrl"
value="${cas.external.url}?service=${service.url}/shiro-cas?tenant=*" />
<property name="successUrl" value="/landing.htm" />
<property name="filterChainDefinitions">
<value>
/shiro-cas = casFilter
/seratelui/** = filter1
/** = myRolesfilter, authc
</value>
</property>
</bean>
And in the "myRolesFilter" class which is extending the
RolesAuthorizationFilter, I modify the loginUrl by replacing the tenant=*
with tenant=tenant_name and then tried calling setLoginUrl(newLoginUrl). But
when i see the request in CAS, it is still coming in as:
"${cas.external.url}?service=${service.url}/shiro-cas?tenant=*"
So, i don't quite understand what is happening here. Can you please help?
Thanks,
Srini
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Shiro-CAS-integration-Customizing-the-CAS-login-page-tp7580380p7580394.html
Sent from the Shiro User mailing list archive at Nabble.com.