[cas-dev] configuration files 3.0.5/3.1.1
Meik Suchlich
meik.suchlich at brand-ad.de
Fri Dec 14 03:16:37 EST 2007
You say that the files have moved. But that cannot be correct, because in the default installation warfile they are at the same location.
And I don't change any Path to that files, so that is definitely not the problem.
I merged my changes and I can't see any fault in my merge, because I didn't make so much changes.
I think the cas/proxyValidate is not correct. Because if I call https://.../cas/proxyValidate I get the loginPage in cas-3.1.1.
In cas 3.0.5 I get this message: "'service' and 'ticket' parameters are both required"
I found one fault in my implementation, which I corrected, but the result is the same. The output is a little bit different (marked red, the de_DE is new, what about that?)
2007-12-14 09:06:36,541 DEBUG [org.springframework.web.servlet.view.RedirectView] - <Rendering view with name 'null' with model null and static attributes {}>
2007-12-14 09:06:46,745 DEBUG [org.springframework.web.servlet.view.ResourceBundleViewResolver] - <Cached view [casServiceSuccessView_de_DE]>
2007-12-14 09:06:46,745 DEBUG [org.springframework.web.servlet.view.JstlView] - <Rendering view with name 'casServiceSuccessView' with model {assertion=[principals={[[Principal=ba002709:001, attributes={profilerid=}]]} for service=http://localhost:8080/XXX/login.do]} and static attributes {}>
2007-12-14 09:06:46,745 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'assertion' of type [org.jasig.cas.validation.ImmutableAssertionImpl] to request in view with name 'casServiceSuccessView'>
2007-12-14 09:06:46,745 DEBUG [org.springframework.web.servlet.view.JstlView] - <Forwarded to resource [/WEB-INF/view/jsp/default/protocol/2.0/casServiceValidationSuccess.jsp] in InternalResourceView 'casServiceSuccessView'>
2007-12-14 09:06:46,776 DEBUG [org.springframework.web.servlet.view.ResourceBundleViewResolver] - <Cached view [casLoginView_de_DE]>
2007-12-14 09:06:46,776 DEBUG [org.springframework.web.servlet.view.JstlView] - <Rendering view with name 'casLoginView' with model {ticketGrantingTicketId=null, service=http://localhost:8080/XXX/login.do, credentials=null, org.springframework.validation.BindException.credentials=org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, org.springframework.validation.BindException.currentFormObject=org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, currentFormObject=null, warnCookieValue=false, flowExecutionContext=[FlowExecutionImpl at 1d73ff5 flow = 'login-webflow', flowSessions = list[[FlowSessionImpl at 1624317 flow = 'login-webflow', state = 'viewLoginForm', scope = map['credentials' -> null, 'service' -> http://localhost:8080/XXX/login.do, 'ticketGrantingTicketId' -> [null], 'currentFormObject' -> null, 'warnCookieValue' -> false], flashMap = map['org.springframework.validation.BindException.credentials' -> org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, 'org.springframework.validation.BindException.currentFormObject' -> org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors], status = Paused]]], commandName=credentials, flowExecutionKey=_cAC6DF99F-ECA5-C014-609A-E3C448440EA9_k5BA213EC-1EDE-9A81-F094-137CD273FEB3} and static attributes {}>
I can't find the misconfiguration in cas-servlet:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:flow="http://www.springframework.org/schema/webflow-config"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
<bean id="casPropertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
p:location="/WEB-INF/cas.properties" />
<!-- Theme Resolver -->
<bean id="themeResolver" class="org.jasig.cas.services.web.ServiceThemeResolver"
p:defaultThemeName="${cas.themeResolver.defaultThemeName}"
p:argumentExtractors-ref="argumentExtractors" />
<!-- View Resolver -->
<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver"
p:order="0">
<property name="basenames">
<list>
<value>${cas.viewResolver.basename}</value>
<value>protocol_views</value>
</list>
</property>
</bean>
<!-- Locale Resolver -->
<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver" />
<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" />
<bean id="urlBasedViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"
p:viewClass="org.springframework.web.servlet.view.AbstractUrlBasedView" />
<bean id="errorHandlerResolver" class="org.jasig.cas.web.NoSuchFlowExecutionExceptionResolver" />
<!-- Handler Mapping -->
<bean id="handlerMappingB" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property
name="mappings">
<props>
<prop
key="/login">loginController</prop>
</props>
</property>
<property
name="interceptors">
<list>
<ref bean="localeChangeInterceptor" />
</list>
</property>
</bean>
<bean
id="handlerMappingC"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property
name="mappings">
<props>
<prop
key="/logout">
logoutController
</prop>
<prop
key="/serviceValidate">
serviceValidateController
</prop>
<prop
key="/validate">
legacyValidateController
</prop>
<prop
key="/proxy">
proxyController
</prop>
<prop
key="/proxyValidate">
proxyValidateController
</prop>
<prop
key="/samlValidate">
samlValidateController
</prop>
<prop
key="/services/add.html">
addRegisteredServiceSimpleFormController
</prop>
<prop
key="/services/edit.html">
editRegisteredServiceSimpleFormController
</prop>
<prop
key="/services/loggedOut.html">
serviceLogoutViewController
</prop>
<prop
key="/services/*">
manageRegisteredServicesMultiActionController
</prop>
<prop
key="/openid/*">openIdProviderController</prop>
</props>
</property>
<property
name="alwaysUseFullPath" value="true" />
<!--
uncomment this to enable sending PageRequest events.
<property
name="interceptors">
<list>
<ref bean="pageRequestHandlerInterceptorAdapter" />
</list>
</property>
-->
</bean>
<bean
id="openIdProviderController"
class="org.jasig.cas.web.OpenIdProviderController"
p:loginUrl="${cas.securityContext.casProcessingFilterEntryPoint.loginUrl}" />
<bean
id="serviceLogoutViewController"
class="org.springframework.web.servlet.mvc.ParameterizableViewController"
p:viewName="serviceLogoutView" />
<bean
id="loginController"
class="org.springframework.webflow.executor.mvc.FlowController"
p:flowExecutor-ref="flowExecutor"
p:defaultFlowId="login-webflow">
<property
name="argumentHandler">
<bean class="org.springframework.webflow.executor.support.RequestParameterFlowExecutorArgumentHandler"
p:flowExecutionKeyArgumentName="lt"
p:defaultFlowId="login-webflow" />
</property>
</bean>
<flow:executor id="flowExecutor" registry-ref="flowRegistry">
<flow:execution-attributes>
<flow:alwaysRedirectOnPause value="false"/>
</flow:execution-attributes>
</flow:executor>
<flow:registry id="flowRegistry">
<flow:location path="/WEB-INF/login-webflow.xml"/>
</flow:registry>
<bean id="proxyValidateController" class="org.jasig.cas.web.ServiceValidateController"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:proxyHandler-ref="proxy20Handler"
p:argumentExtractor-ref="casArgumentExtractor" />
<bean id="serviceValidateController" class="org.jasig.cas.web.ServiceValidateController"
p:validationSpecificationClass="org.jasig.cas.validation.Cas20WithoutProxyingValidationSpecification"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:proxyHandler-ref="proxy20Handler"
p:argumentExtractor-ref="casArgumentExtractor" />
<bean id="samlValidateController" class="org.jasig.cas.web.ServiceValidateController"
p:validationSpecificationClass="org.jasig.cas.validation.Cas20WithoutProxyingValidationSpecification"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:proxyHandler-ref="proxy20Handler"
p:argumentExtractor-ref="samlArgumentExtractor"
p:successView="casSamlServiceSuccessView"
p:failureView="casSamlServiceFailureView" />
<bean id="legacyValidateController" class="org.jasig.cas.web.ServiceValidateController"
p:proxyHandler-ref="proxy10Handler"
p:successView="cas1ServiceSuccessView"
p:failureView="cas1ServiceFailureView"
p:validationSpecificationClass="org.jasig.cas.validation.Cas10ProtocolValidationSpecification"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:argumentExtractor-ref="casArgumentExtractor" />
<bean id="proxyController" class="org.jasig.cas.web.ProxyController"
p:centralAuthenticationService-ref="centralAuthenticationService" />
<bean id="logoutController" class="org.jasig.cas.web.LogoutController"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:logoutView="casLogoutView"
p:warnCookieGenerator-ref="warnCookieGenerator"
p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator" />
<bean id="initialFlowSetupAction" class="org.jasig.cas.web.flow.InitialFlowSetupAction"
p:argumentExtractors-ref="argumentExtractors"
p:warnCookieGenerator-ref="warnCookieGenerator"
p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator" />
<bean id="authenticationViaFormAction" class="org.jasig.cas.web.flow.AuthenticationViaFormAction"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:warnCookieGenerator-ref="warnCookieGenerator" />
<bean id="generateServiceTicketAction" class="org.jasig.cas.web.flow.GenerateServiceTicketAction"
p:centralAuthenticationService-ref="centralAuthenticationService" />
<bean id="sendTicketGrantingTicketAction" class="org.jasig.cas.web.flow.SendTicketGrantingTicketAction"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator" />
<!--
<bean
id="x509Check"
p:centralAuthenticationService-ref="centralAuthenticationService"
class="org.jasig.cas.adaptors.x509.web.flow.X509CertificateCredentialsNonInteractiveAction" />
-->
<bean id="casArgumentExtractor" class="org.jasig.cas.web.support.CasArgumentExtractor" />
<util:list id="argumentExtractors">
<ref bean="casArgumentExtractor" />
<!--<ref bean="samlArgumentExtractor" />-->
</util:list>
<bean id="samlArgumentExtractor" class="org.jasig.cas.web.support.SamlArgumentExtractor" />
<bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure="true"
p:cookieMaxAge="-1"
p:cookieName="CASPRIVACY"
p:cookiePath="/cas" />
<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure="true"
p:cookieMaxAge="-1"
p:cookieName="CASTGC"
p:cookiePath="/cas" />
<bean id="dynamicRedirectViewSelector" class="org.jasig.cas.web.flow.DynamicRedirectViewSelector" />
<!--
<bean id="openIdSingleSignOnAction" class="org.jasig.cas.web.flow.OpenIdSingleSignOnAction"
p:centralAuthenticationService-ref="centralAuthenticationService" />
-->
<bean id="addRegisteredServiceSimpleFormController" class="org.jasig.cas.services.web.RegisteredServiceSimpleFormController"
p:formView="addServiceView"
p:successView="addServiceView"
p:commandName="registeredService"
p:validator-ref="registeredServiceValidator"
p:sessionForm="true">
<constructor-arg index="0" ref="servicesManager" />
<constructor-arg index="1" ref="attributeRepository" />
</bean>
<bean id="editRegisteredServiceSimpleFormController" class="org.jasig.cas.services.web.RegisteredServiceSimpleFormController"
p:formView="editServiceView"
p:successView="editServiceView"
p:commandName="registeredService"
p:validator-ref="registeredServiceValidator"
p:sessionForm="false">
<constructor-arg index="0" ref="servicesManager" />
<constructor-arg index="1" ref="attributeRepository" />
</bean>
<bean id="registeredServiceValidator" class="org.jasig.cas.services.web.support.RegisteredServiceValidator"
p:servicesManager-ref="servicesManager" />
<bean id="manageRegisteredServicesMultiActionController" class="org.jasig.cas.services.web.ManageRegisteredServicesMultiActionController">
<constructor-arg index="0" ref="servicesManager" />
</bean>
</beans>
Meik Suchlich
--
BRAND AD GmbH
Gebhardtstraße 5
90762 Fürth
Tel. +49 (0) 911 756658 - 27
Fax +49 (0) 911 756658 - 88
Sitz und Registergericht Fürth, HRB 9470
Geschäftsführer Joachim Stelzer
________________________________
Von: cas-dev-bounces at tp.its.yale.edu [mailto:cas-dev-bounces at tp.its.yale.edu] Im Auftrag von Scott Battaglia
Gesendet: Donnerstag, 13. Dezember 2007 17:19
An: Mailing list for CAS developers
Betreff: Re: [cas-dev] needed Downloads
This is why I had mentioned to you that you need to correctly merge your old version with the new version and build the war that way. The files have moved in the most recent version of CAS. They are no longer located under /default/protocol
-Scott
On Dec 13, 2007 10:58 AM, Meik Suchlich <meik.suchlich at brand-ad.de> wrote:
Hi,
I don't understand why my configuration doesn't work.
The client gets the loginView instead of the xml-Response with <cas:authenticationSuccess>
I can't find the configuration error. Can anybody help?
What I don't understand is marked red. Why does it Change to casLoginView nad does not deliver casServiceValidationSuccess.jsp for the casServiceSuccessView as defined in the default_views.properties??
2007-12-13 16:45:56,659 DEBUG [org.springframework.web.servlet.view.JstlView] - <Forwarded to resource [/WEB-INF/view/jsp/default/protocol/2.0/casServiceValidationSuccess.jsp] in InternalResourceView 'casServiceSuccessView'>
2007-12-13 16:45:56,659 DEBUG [org.springframework.web.servlet.view.JstlView] - <Rendering view with name 'casLoginView' with model {ticketGrantingTicketId=null, service=http://localhost:8080/XXX/login.do, credentials=null, org.springframework.validation.BindException.credentials=org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 0 errors, org.springframework.validation.BindException.currentFormObject=org.springframework.validation.BindException : org.springframework.validation.BeanPropertyBindingResult: 0 errors, currentFormObject=null, warnCookieValue=false, flowExecutionContext=[FlowExecutionImpl at 1edaf0e flow = 'login-webflow', flowSessions = list[[FlowSessionImpl at 87ace0 flow = 'login-webflow', state = 'viewLoginForm', scope = map['credentials' -> null, 'service' -> http://localhost:8080/ XXX/login.do <http://localhost:8080/%20XXX/login.do> , 'ticketGrantingTicketId' -> [null], 'currentFormObject' -> null, 'warnCookieValue' -> false], flashMap = map['org.springframework.validation.BindException.credentials' -> org.springframework.validation.BindException : org.springframework.validation.BeanPropertyBindingResult: 0 errors, 'org.springframework.validation.BindException.currentFormObject' -> org.springframework.validation.BindException : org.springframework.validation.BeanPropertyBindingResult: 0 errors], status = Paused]]], commandName=credentials, flowExecutionKey=_cF5F67CBE-ECCC-5EFC-3397-EC88AC13C14D_kF01236FF-0875-DF33-DDB8-572DC976B6BC} and static attributes {}>
2007-12-13 16:45:56,659 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'credentials' of type [org.jasig.cas.authentication.principal.UsernamePasswordCredentials] to request in view with name 'casLoginView'>
Thanks!
Meik Suchlich
_______________________________________________
cas-dev mailing list
cas-dev at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas-dev
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20071214/aa8b4af7/attachment-0001.html
More information about the cas-dev
mailing list