Hi, Can you try to override the redirectToLogin method as I did here: https://github.com/bujiio/buji-pac4j/blob/master/servlet/src/main/java/io/buji/pac4j/filter/ClientRolesAuthorizationFilter.java#L51 ?
Thanks. Best regards, Jérôme LELEU Founder of CAS in the cloud: www.casinthecloud.com | Twitter: @leleuj Chairman of CAS: www.jasig.org/cas | Creator of pac4j: www.pac4j.org 2015-01-08 13:09 GMT+01:00 srini_keshav [via Shiro User] < [email protected]>: > 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 > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://shiro-user.582556.n2.nabble.com/Shiro-CAS-integration-Customizing-the-CAS-login-page-tp7580380p7580394.html > To start a new topic under Shiro User, email > [email protected] > To unsubscribe from Shiro User, click here > <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=582556&code=bGVsZXVqQGdtYWlsLmNvbXw1ODI1NTZ8LTExNzY2MzcxMTY=> > . > NAML > <http://shiro-user.582556.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://shiro-user.582556.n2.nabble.com/Shiro-CAS-integration-Customizing-the-CAS-login-page-tp7580380p7580396.html Sent from the Shiro User mailing list archive at Nabble.com.
