Mohammad,

A service that is involved in proxying (including callback) must be
registered to allow proxying.
See,
https://apereo.github.io/cas/4.2.x/installation/Configuring-Service-Proxy-Policy.html
For class members of org.jasig.cas.services.RegexRegisteredService see
https://github.com/apereo/cas/blob/master/core/cas-server-core-services/src/main/java/org/apereo/cas/services/AbstractRegisteredService.java

Ray

On 14/02/17 11:54 PM, Mohammad Farahani wrote:
> I am using cas 4.1.7
>
> I run the cas server and cas client on localhost(127.0.0.1) on
> different ports(server https://127.0.0.1:8443 and client
> https://127.0.0.1:8444)
>
> I did the config the web.xml on client
> I login to the server successfully but Unfortunately didn't redirect
> to the client.
>
> Maby the configuration is not right.
> I don't know how to confi parameters:     
> proxyCallbackUrl and proxyReceptorUrl
>                                                         
> who can help me.
> this is deployerConfigContext.xml file:
>
> <bean id="serviceRegistryDao"
> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"
> p:registeredServices-ref="registeredServicesList" /> <util:list
> id="registeredServicesList"> <bean
> class="org.jasig.cas.services.RegexRegisteredService" p:id="1"
> p:name="HTTPS and IMAPS services on example.com"
> p:serviceId="https://127.0.0.1:8444/.*"; p:evaluationOrder="0" /> <bean
> class="org.jasig.cas.services.RegexRegisteredService" p:id="2"
> p:name="HTTPS controlCenter"
> p:serviceId="https://127.0.0.1:8444/controlCenter.html/.*";
> p:evaluationOrder="1" /> <bean
> class="org.jasig.cas.services.RegexRegisteredService" p:id="3"
> p:name="HTTPS and IMAPS services on example.com"
> p:serviceId="https://127.0.0.1:8444/.*"; p:evaluationOrder="2" />
> </util:list> and this is web.xml: <filter>
>     <filter-name>CAS Authentication Filter</filter-name>
>     
> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
>     <init-param>
>         <param-name>casServerLoginUrl</param-name>
>         <param-value>https://127.0.0.1:8443/login</param-value>
>     </init-param>
>     <init-param>
>         <param-name>serverName</param-name>
>         <param-value>https://127.0.0.1:8444</param-value>
>     </init-param>
>
>     <!--<init-param>--> <!--<param-name>service</param-name>-->
> <!--<param-value>https://127.0.0.1:8444/controlCenter.html</param-value>-->
> <!--</init-param>--> <init-param>
>         <param-name>renew</param-name>
>         <param-value>false</param-value>
>     </init-param>
>     <init-param>
>         <param-name>gateway</param-name>
>         <param-value>false</param-value>
>     </init-param>
> </filter>
>
> <filter>
>     <filter-name>CAS Validation Filter</filter-name>
>     
> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
>     <init-param>
>         <param-name>casServerUrlPrefix</param-name>
>         <param-value>https://127.0.0.1:8443/</param-value>
>     </init-param>
>     <init-param>
>         <param-name>serverName</param-name>
>         <param-value>https://127.0.0.1:8444</param-value>
>     </init-param>
>     <init-param>
>         <param-name>proxyCallbackUrl</param-name>
>         <param-value>https://127.0.0.1:8444</param-value>
>     </init-param>
>
>     <init-param>
>     <param-name>proxyReceptorUrl</param-name>
>     <param-value>/controlCenter.html</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>
>     <filter-name>CAS Assertion Thread Local Filter</filter-name>
>     
> <filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
> </filter>
>
> <!-- ************************* --> <!-- Sign out not yet implemented
> --> <!-- <filter-mapping> <filter-name>CAS Single Sign Out
> 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 Validation 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>
>
> <filter-mapping>
>     <filter-name>CAS Assertion Thread Local Filter</filter-name>
>     <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
>     <filter-name>CAS Validation Filter</filter-name>
>     <url-pattern>/proxyCallback</url-pattern>
> </filter-mapping>
>
>
> -- 
> - CAS gitter chatroom: https://gitter.im/apereo/cas
> - CAS mailing list guidelines:
> https://apereo.github.io/cas/Mailing-Lists.html
> - CAS documentation website: https://apereo.github.io/cas
> - CAS project website: https://github.com/apereo/cas
> ---
> You received this message because you are subscribed to the Google
> Groups "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/19ca083a-827c-4e5c-b1de-99d45b2ca1e9%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/19ca083a-827c-4e5c-b1de-99d45b2ca1e9%40apereo.org?utm_medium=email&utm_source=footer>.

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE C023 | [email protected]

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/e36b6a6b-1901-8801-0c3d-fde5a66cb8f9%40uvic.ca.

Reply via email to