cas 4.1.7 configuration

111 views
Skip to first unread message

Mohammad Farahani

unread,
Feb 15, 2017, 2:54:13 AM2/15/17
to CAS Community
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>


Ray Bon

unread,
Feb 15, 2017, 12:17:18 PM2/15/17
to cas-...@apereo.org
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
--
- 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 cas-user+u...@apereo.org.
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.

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE C023 | rb...@uvic.ca

Mohammad Farahani

unread,
Feb 19, 2017, 3:32:46 AM2/19/17
to CAS Community
now I have another Error:
after successful login on CAS server, when I redirect to the client I see the error" :
The reference to entity "ticket" must end with the ';' delimiter  (in the intellij log consol)


No principal was found in the response from the CAS server. (on the web page)

any help?
Reply all
Reply to author
Forward
0 new messages