Hi,
We're upgrading a CAS 3.x application to 5.x. Looking at the docs a lot has
changed around the webflows. We are planning on changing our main login
flow, with a custom password reset process, to use the new method. (
https://apereo.github.io/2016/10/07/webflow-extcfg/)
However we have two custom authentication flows that I can't figure out how
to hook into the CAS service. Looking at our 3.x configuration we specify
these flows by first defining servlet mappings, mappings URLs, then update
the set of supportedFlowIds and finally point Spring to the actual XML.
These are called by the application going to /custom_flow_1 on the CAS
servlet.
Is there an example of adding a completely new flow to the CAS flows using
the IDD model (so not adding a new step to the existing userLogin, but a
completely new login flow)?
If not, tips on how to
- configure CAS to know when it sees /custom_flow_1 to start a custom
webflow?
- make the CAS actions such as ticket granting etc. available to this
custom webflow?
What we have today:
<bean id="handlerMappingC"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"
p:alwaysUseFullPath="true">
<property name="mappings">
<props>
...
<prop key="/custom_flow_1">custom1Controller</prop>
</props>
</property>
<!--<property name="alwaysUseFullPath" value="true" />-->
</bean>
<bean id="loginHandlerAdapter"
class="org.jasig.cas.web.flow.SelectiveFlowHandlerAdapter"
p:flowExecutor-ref="loginFlowExecutor"
p:flowUrlHandler-ref="loginFlowUrlHandler" >
<property name="supportedFlowIds">
<util:list>
<value>login</value>
<value>custom1</value>
</util:list>
</property>
</bean>
<webflow:flow-registry id="loginFlowRegistry"
flow-builder-services="builder">
<webflow:flow-location path="/WEB-INF/login-webflow.xml" id="login"
/>
<webflow:flow-location path="/WEB-INF/custom1-webflow.xml"
id="custom1"/>
</webflow:flow-registry>
Thanks
Chris
--
- 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/4acac716-bcb7-4818-bd63-4c6396d46e0b%40apereo.org.