That's where you've specified to redirect to. If you don't want to redirect there then change the "service" parameter. Also, you need either service or serverName but not both.
Cheers, Scott On Tue, Mar 15, 2011 at 3:31 PM, mala <[email protected]> wrote: > i configured cas client in web.xml and installed cas-server-webapp in > tomcat/webapps. > > web.xml > > <filter> > <filter-name>CAS Filter</filter-name> > > > <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> > <init-param> > <param-name>casServerLoginUrl</param-name> > <param-value>http://localhost:8080/cas-server-webapp-3.4.6/login > </param-value> > </init-param> > <init-param> > <param-name>ValidateUrl</param-name> > <param-value> > http://localhost:8080/cas-server-webapp-3.4.6/serviceValidate > </param-value> > </init-param> > > <init-param> > <param-name>service</param-name> > <param-value>http://localhost/portal/login.html</param-value> > </init-param> > > <init-param> > <param-name>serverName</param-name> > <param-value>localhost</param-value> > </init-param> > </filter> > > <filter-mapping> > <filter-name>CAS Filter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mappin> > > when i hit "http://localhost/portal" its redirected to cas/login page. > here i haven't yet implemented my cutom-authentication-handler and using > default authentication handler > "SimpleUsernamePasswordAuthenticationHandler". > > After successful authentication of username and password it redirected(i > checked tomcat logfiles) to http://localhost/portal/login.html (because > this is the url i provided for service). That is my application's login page > and asking for credentials again. > > what should i do to login automatically into my application after cas > authentication instead of asking credentials again. > > Your help would be greatly appreciated. > > Thanks you. > > Mala > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
