Hi,
In my cas service client (Spring client) I have this configuration:
<http pattern="/resources/**" security="none"/>
<http use-expressions="true" entry-point-ref="casEntryPoint">
<intercept-url pattern="/sync/**" access="permitAll"/>
<intercept-url pattern="/**" access="isAuthenticated()"/>
<access-denied-handler error-page="/no-access"/>
<custom-filter ref="casFilter" position="CAS_FILTER"/>
<custom-filter ref="singleLogoutFilter"
before="LOGOUT_FILTER"/>
<logout logout-url="/logout"
logout-success-url="${cas.server.host}/cas/logout?service=${cas.service.host}"/>
</http>
<authentication-manager alias="authenticationManager">
<authentication-provider ref="casAuthProvider"/>
</authentication-manager>
<!-- authenticates CAS tickets, must be in custom-filter of cis.xml -->
<bean id="casFilter"
class="org.springframework.security.cas.web.CasAuthenticationFilter">
<property name="authenticationManager" ref="authenticationManager"/>
<property name="filterProcessesUrl" value="/login"/>
</bean>
<bean id="casAuthProvider"
class="org.springframework.security.cas.authentication.CasAuthenticationProvider">
<property name="ticketValidator" ref="ticketValidator"/>
<property name="serviceProperties" ref="serviceProperties"/>
<property name="key" value="Analytics"/>
<property name="authenticationUserDetailsService"
ref="myUserDetailsService"/>
<!-- <property name="statelessTicketCache"
ref="statelessTicketCache"/>-->
</bean>
Everything working as expected. the only this I dont get is when I am accessing
localhost:8080/login instead of being redirect to CAS server I am getting:
HTTP Status 401 - Authentication Failed: Failed to provide a CAS service ticket
to validate
(same goes for /admin/login)
Is 'login' somehow protected by cas client? anyone could please explain me that?
thanks,
ray.
--
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