Hi Dheeraj,

What does CAS do if it doesn't redirect you back to your client
application? Does it produce an error?

If so, this maybe because your service url set in the client doesn't
match what has been permitted in the registered service:
"https://localhost:8443/casclient2"; does not equal
"https://localhost:8443/casclient2/"; (trailing slash on the latter).
Knowing what to put in for the registered url is easily discovered by
looking at the "service=" query string when the user is at the login
page. You'll want to put the url decoded version of that value in the
registered service. You can also use regex patterns or wildcards in the url.

Good luck

John

---
*John Gasper*
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef

On 9/10/14 5:38 AM, Dheeraj Dubey wrote:
>
> Hi All,
>
> I have configure CAS 4.0 in tomcat 7 with JDBC Authentication handler.
>
> I have mapped one service in InMemoryServiceRegistryDaoImpl
>
> */<bean class="org.jasig.cas.services.RegexRegisteredService">/*
> */        <property name="id" value="0" />/*
> */        <property name="name" value="casclient2" />/*
> */        <property name="description" value="CAS cas client " />/*
> */        <property name="serviceId"
> value="https://localhost:8443/casclient2"; />/*
> */        <property name="evaluationOrder" value="10000001" />/*
> */</bean>/*
>
>
> And below is Cas client's web.xml  
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> <filter>
> <filter-name>CAS Authentication Filter</filter-name>
> <filter-class>org.jasig.cas.client.authentication.Saml11AuthenticationFilter</filter-class>
> <!--
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
> -->
> <init-param>
> <param-name>casServerLoginUrl</param-name>
> <param-value>https://localhost:8443/cas/login</param-value>
> </init-param>
> <init-param>
> <param-name>service</param-name>
> <param-value>https://localhost:8443/casclient2/</param-value>
> </init-param>
> </filter>
>
> <filter>
> <filter-name>CAS Validation Filter</filter-name>
> <filter-class>org.jasig.cas.client.validation.Saml11TicketValidationFilter</filter-class>
>
> <!--
> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
> -->
> <init-param>
> <param-name>casServerUrlPrefix</param-name>
> <param-value>https://localhost:8443/cas</param-value>
> </init-param>
> <init-param>
> <param-name>service</param-name>
> <param-value>https://localhost:8443/casclient2/</param-value>
> </init-param>
> <init-param>
> <param-name>redirectAfterValidation</param-name>
> <param-value>true</param-value>
> </init-param>
> <init-param>
> <param-name>useSession</param-name>
> <param-value>true</param-value>
> </init-param>
> <init-param>
> <param-name>acceptAnyProxy</param-name>
> <param-value>true</param-value>
> </init-param>
> <init-param>
> <param-name>proxyReceptorUrl</param-name>
> <param-value>/casclient2/proxyUrl</param-value>
> </init-param>
> <init-param>
> <param-name>proxyCallbackUrl</param-name>
> <param-value>https://localhost:8443/casclient2/proxyUrl</param-value>
> </init-param>
> </filter>
>
> <filter>
> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>CAS Validation Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>CAS Authentication Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <welcome-file-list>
> <welcome-file>
> index.jsp
> </welcome-file>
> </welcome-file-list>
> </web-app>
>
>
>
> when I invoke client application from browser it redirect me to CAS
> login Page but after successful login CAS does not redirect me to
> client application back.
> Please help me. I would be highly oblige.
>
>
>
> Thanks and Regards,*
> *
> *
> *
> Dheeraj Dubey
>
> -- 
> 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

Reply via email to