I am with
Michael.
Even I tried to edit the login page layout to change the branding and look
and feel for our current application. its little tough to do the ui changes
keeping in mind not to beak the functionality.
So, if it can be easier with some predefined form field names/ids we can
use directly on our forms, that would be great.


        Thanks
       Shib
aram

On Tue, Jul 2, 2013 at 11:37 PM, Michael Wechner
<[email protected]>wrote:

>  Am 02.07.13 16:47, schrieb Ohsie, David:
>
>  The recommended way is to let CAS present the login screen.  You can
> customize the CAS login screen to look however you want it to look by
> supplying your own .jsp or changing the .css.
>
>
> right, but from a usability point of view it would be nice to have the
> input fields, where one is entering the username and password, on the
> content management system side. I don't mean to submit the username and
> password to the content management system, but as described below would
> submit it directly to CAS by setting the action attribute accordingly.
>
> It might make sense to better understand the reason for the "login
> ticket". I have been "googling" for some documentation on the "login
> ticket", but didn't find any useful information. Do you have any pointers
> about the "login ticket" which are explaining the concept of it?
>
>
> Thanks for your help
>
> Michael
>
>  ****
>
> ** **
>
> David Ohsie****
>
> Software Architect****
>
> EMC Corporation****
>
> ** **
>
> *From:* Michael Wechner 
> [mailto:[email protected]<[email protected]>]
>
> *Sent:* Sunday, June 30, 2013 10:01 AM
> *To:* [email protected]
> *Subject:* Re: [cas-user] No active FlowSession to access****
>
> ** **
>
> Working more on this it seems that the important parameters are
>
>  <input type="hidden" name="lt"
> value="LT-2-gFLyRN567tfyyjDetBvbgjdvCJ6ePm"/>
> <input type="hidden" name="execution" value="e1s1"/>
>  <input type="hidden" name="_eventId" value="submit"/>
>
> (whereas I have removed the gateway parameter from the login screen
> generated by the content management system)
>
> which is documented at
>
> https://wiki.jasig.org/display/CAS/Using+CAS+without+the+CAS+login+screen
>
> https://wiki.jasig.org/display/CAS/Using+CAS+from+external+link+or+custom+external+form
>
> I wonder whether this is still the recommended way, because it seems to me
> rather complicated.
>
> The reason I am asking is because it seems to me that the usecase that the
> username and password field are part of a website itself is quite common.
>
> Best wishes
>
> Michael
>
> Am 30.06.13 14:59, schrieb Michael Wechner:****
>
> Hi
>
> I am using apache-tomcat-7.0.25/webapps/cas-server-webapp-3.5.2 running at
>
>
> ****
>
> https://127.0.0.1:7443/cas-server-webapp-3.5.2/login****
>
> ** **
>
> I have created my own login screen inside my content management system, 
> e.g.****
>
> ** **
>
> http://127.0.0.1:8080/yanel/my-website/login.html****
>
> ** **
>
> whereas the forms links to the CAS server****
>
> ** **
>
> ** **
>
> <form action="https://127.0.0.1:7443/cas-server-webapp-3.5.2/login"; 
> method="POST">****
>
> ** **
>
> Inside the form I have set hidden fields like****
>
> ** **
>
> <input value="http://127.0.0.1:8080/yanel/my-website/"; name="service" 
> type="hidden"/>****
>
> ** **
>
> such that CAS can redirect back to the content management system, and****
>
> ** **
>
> <input value="true" name="gateway" type="hidden"/>****
>
> ** **
>
> such that CAS does not prompt itself for username and password****
>
> When I hit the submit button, then I receive the following error message 
> inside the log4j file of CAS:****
>
> ** **
>
> ** **
>
> 2013-06-30 14:52:40,362 DEBUG [org.jasig.cas.web.flow.InitialFlowSetupAction] 
> - Placing service in FlowScope: 
> http://127.0.0.1:8080/yanel/my-website/login.html****
>
> 2013-06-30 14:52:40,362 DEBUG [org.jasig.cas.web.flow.InitialFlowSetupAction] 
> - Placing service in FlowScope: 
> http://127.0.0.1:8080/yanel/my-website/login.html****
>
> 2013-06-30 14:52:40,363 DEBUG 
> [org.jasig.cas.web.flow.TerminateWebSessionListener] - Error getting service 
> from flow state.****
>
> java.lang.IllegalStateException: No active FlowSession to access; this 
> FlowExecution has ended****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionImpl.getActiveSession(FlowExecutionImpl.java:191)****
>
>  at 
> org.springframework.webflow.engine.impl.RequestControlContextImpl.getFlowScope(RequestControlContextImpl.java:134)****
>
>  at 
> org.jasig.cas.web.support.WebUtils.getService_aroundBody8(WebUtils.java:87)****
>
>  at 
> org.jasig.cas.web.support.WebUtils.getService_aroundBody9$advice(WebUtils.java:57)****
>
>  at org.jasig.cas.web.support.WebUtils.getService(WebUtils.java:1)****
>
>  at 
> org.jasig.cas.web.flow.TerminateWebSessionListener.sessionStarted_aroundBody0(TerminateWebSessionListener.java:62)****
>
>  at 
> org.jasig.cas.web.flow.TerminateWebSessionListener.sessionStarted_aroundBody1$advice(TerminateWebSessionListener.java:57)****
>
>  at 
> org.jasig.cas.web.flow.TerminateWebSessionListener.sessionStarted(TerminateWebSessionListener.java:1)****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionListeners.fireSessionStarted(FlowExecutionListeners.java:126)****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:367)****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)****
>
>  at 
> org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)****
>
>  at 
> org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)****
>
>  at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)****
>
>  at 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)****
>
>  at 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)****
>
>  at 
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)****
>
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)****
>
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)****
>
>  at 
> org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)****
>
>  at 
> org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:57)****
>
>  at 
> org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)****
>
>  at 
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)****
>
>  at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)****
>
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)****
>
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)****
>
>  at 
> com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)****
>
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)****
>
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)****
>
>  at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)****
>
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)****
>
>  at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)****
>
>  at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)****
>
>  at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)****
>
>  at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)****
>
>  at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)****
>
>  at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)****
>
>  at 
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)****
>
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)****
>
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)****
>
>  at java.lang.Thread.run(Thread.java:680)****
>
> 2013-06-30 14:52:40,363 DEBUG 
> [org.jasig.cas.web.flow.TerminateWebSessionListener] - Error getting service 
> from flow state.****
>
> java.lang.IllegalStateException: No active FlowSession to access; this 
> FlowExecution has ended****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionImpl.getActiveSession(FlowExecutionImpl.java:191)****
>
>  at 
> org.springframework.webflow.engine.impl.RequestControlContextImpl.getFlowScope(RequestControlContextImpl.java:134)****
>
>  at 
> org.jasig.cas.web.support.WebUtils.getService_aroundBody8(WebUtils.java:87)****
>
>  at 
> org.jasig.cas.web.support.WebUtils.getService_aroundBody9$advice(WebUtils.java:57)****
>
>  at org.jasig.cas.web.support.WebUtils.getService(WebUtils.java:1)****
>
>  at 
> org.jasig.cas.web.flow.TerminateWebSessionListener.sessionStarted_aroundBody0(TerminateWebSessionListener.java:62)****
>
>  at 
> org.jasig.cas.web.flow.TerminateWebSessionListener.sessionStarted_aroundBody1$advice(TerminateWebSessionListener.java:57)****
>
>  at 
> org.jasig.cas.web.flow.TerminateWebSessionListener.sessionStarted(TerminateWebSessionListener.java:1)****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionListeners.fireSessionStarted(FlowExecutionListeners.java:126)****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:367)****
>
>  at 
> org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)****
>
>  at 
> org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)****
>
>  at 
> org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)****
>
>  at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)****
>
>  at 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)****
>
>  at 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)****
>
>  at 
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)****
>
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)****
>
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)****
>
>  at 
> org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)****
>
>  at 
> org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:57)****
>
>  at 
> org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)****
>
>  at 
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)****
>
>  at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)****
>
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)****
>
>  at 
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)****
>
>  at 
> com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)****
>
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)****
>
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)****
>
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)****
>
>  at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)****
>
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)****
>
>  at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)****
>
>  at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)****
>
>  at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)****
>
>  at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)****
>
>  at 
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)****
>
>  at 
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)****
>
>  at 
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)****
>
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)****
>
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)****
>
>  at java.lang.Thread.run(Thread.java:680)****
>
>
> Any idea what I might be doing wrong?
>
> All I would like is that my own content management system is prompting for
> username and password and not the CAS webapp. I have searched the web quite
> a bit for similar solutions, and IIUC this must be possible somehow.
>
> Thanks for your help
>
> Michael****
>
> -- ****
>
> 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****
>
>
> --
> 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