+1

Being able to utilize information about a known service within the webflow
just makes sense.

-Michael

On Sun, Dec 4, 2011 at 11:15 PM, Scott Battaglia
<[email protected]>wrote:

> Thoughts on making this something that's always available as part of the
> flow?
>
> Seems useful and low impact.
>
>
> On Tue, Nov 29, 2011 at 10:50 AM, Aaron Fuleki <[email protected]>wrote:
>
>> That was super helpful Marvin; thank you!  My coworkers helped me split
>> out just the bits we needed from your code, and it works well. I pasted the
>> diff against 3.4.8 below.
>>
>> -Aaron
>>
>> ---------------------------------
>> Aaron Fuleki
>> Senior Web Architect
>> Denison University
>> 740.587.5752
>> ---------------------------------
>>
>>
>> 17c17
>> <               <if test="externalContext.requestParameterMap['gateway']
>> neq '' &amp;&amp; externalContext.requestParameterMap['gateway'] neq null
>> &amp;&amp; flowScope.service neq null"
>> then="gatewayServicesManagementCheck" else="viewLoginForm" />
>> ---
>> >               <if test="externalContext.requestParameterMap['gateway']
>> neq '' &amp;&amp; externalContext.requestParameterMap['gateway'] neq null
>> &amp;&amp; flowScope.service neq null"
>> then="gatewayServicesManagementCheck" else="needsServiceLookup" />
>> 25c25
>> <               <if test="externalContext.requestParameterMap['renew']
>> neq '' &amp;&amp; externalContext.requestParameterMap['renew'] neq null"
>> then="viewLoginForm" else="generateServiceTicket" />
>> ---
>> >               <if test="externalContext.requestParameterMap['renew']
>> neq '' &amp;&amp; externalContext.requestParameterMap['renew'] neq null"
>> then="needsServiceLookup" else="generateServiceTicket" />
>> 122a123,142
>> >
>> >       <!--
>> >       ============================================
>> >       Begin service-aware JSP customizations
>> >         ============================================
>> >         -->
>> >       <decision-state id="needsServiceLookup">
>> >               <if test="flowScope.service != null"
>> then="lookupRegisteredService" else="viewLoginForm"/>
>> >       </decision-state>
>> >
>> >       <action-state id="lookupRegisteredService">
>> >               <set name="flowScope.registeredService"
>> value="servicesManager.findServiceBy(flowScope.service)" />
>> >               <transition to="viewLoginForm" />
>> >       </action-state>
>> >       <!--
>> >       ============================================
>> >       End service-aware JSP customizations
>> >         ============================================
>> >         -->
>> >
>>
>>
>> On Nov 28, 2011, at 11:33 AM, Marvin Addison wrote:
>>
>> >> Has anyone pulled service manager params into their view code before,
>> or would anyone be willing to help build an example web flow config that we
>> can wiki-fy?
>> >
>> > We've done it.  See
>> >
>> https://svn.middleware.vt.edu/svn/middleware/cas/cas-server/tags/cas-server-3.4.11-RC1/vt-cas-server-webapp/src/main/webapp/WEB-INF/view/jsp/vt/ui/casLoginView.jsp
>> > and
>> https://svn.middleware.vt.edu/svn/middleware/cas/cas-server/tags/cas-server-3.4.11-RC1/vt-cas-server-webapp/src/main/webapp/WEB-INF/login-webflow.xml
>> .
>> > In particular, note the lookupRegisteredService action.
>> >
>> > M
>> >
>> > --
>> > 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
>
>


-- 
Michael Herring
Information Technology Services
Web Developer
Denison University
740-587-6360
[email protected]

-- 
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