[java-identity-provider COMMIT] in /trunk/idp-conf/src/main/resources: flows/consent/terms-of-use/terms-of-use-flow.x...
noreply at shibboleth.net
noreply at shibboleth.net
Mon Aug 25 13:36:02 EDT 2014
Author: tzeller
Date: Mon Aug 25 13:36:01 2014
New Revision: 6469
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6469&view=rev
Log:
Sketch terms-of-use actions and form.
Added:
trunk/idp-conf/src/main/resources/views/consent/
trunk/idp-conf/src/main/resources/views/consent/attribute-release/
trunk/idp-conf/src/main/resources/views/consent/terms-of-use/
trunk/idp-conf/src/main/resources/views/consent/terms-of-use/terms-of-use.vm (with props)
Modified:
trunk/idp-conf/src/main/resources/flows/consent/terms-of-use/terms-of-use-flow.xml
Modified: trunk/idp-conf/src/main/resources/flows/consent/terms-of-use/terms-of-use-flow.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/flows/consent/terms-of-use/terms-of-use-flow.xml?rev=6469&r1=6468&r2=6469&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/flows/consent/terms-of-use/terms-of-use-flow.xml (original)
+++ trunk/idp-conf/src/main/resources/flows/consent/terms-of-use/terms-of-use-flow.xml Mon Aug 25 13:36:01 2014
@@ -4,12 +4,66 @@
<!-- Placeholder flow for terms-of-use consent. -->
+ <!-- This is the Terms Of Use consent subflow. It handles retrieval of an existing consent decision, set up of the TermsOfUseContext,
+ and finalization of processing such as storing the consent decision, before returning control to the calling flow. -->
+
<!-- Rudimentary impediment to direct execution of subflow. -->
<input name="calledAsSubflow" type="boolean" required="true" />
-
- <on-start>
+
+ <action-state id="SetupTermsOfUseConsentContext">
+ <!-- <evaluate expression="PopulateTermsOfUseConsentContext" /> -->
<evaluate expression="'proceed'" />
- </on-start>
+
+ <transition on="proceed" to="ReadTermsOfUseConsentDecisionFromStorageService" />
+ </action-state>
+
+ <action-state id="ReadTermsOfUseConsentDecisionFromStorageService">
+ <evaluate expression="'proceed'" />
+
+ <transition on="UNSPECIFIED" to="DisplayTermsOfUseConsentPage" />
+ <transition on="INAPPLICABLE" to="DisplayTermsOfUseConsentPage" />
+ <transition on="PRIOR" to="proceed" />
+ <transition on="ACCEPTED" to="proceed" />
+ <transition on="DECLINED" to="DisplayTermsOfUseConsentDeclinedPage" />
+
+ <transition on="proceed" to="DisplayTermsOfUseConsentPage" />
+ </action-state>
+
+ <view-state id="DisplayTermsOfUseConsentPage" view="consent/terms-of-use/terms-of-use">
+ <on-render>
+ <evaluate expression="T(net.shibboleth.idp.Version)" result="requestScope.Version" />
+ <evaluate expression="flowRequestContext.getExternalContext().getNativeRequest()" result="requestScope.request" />
+ <evaluate expression="flowRequestContext.getExternalContext().getNativeResponse()" result="requestScope.response" />
+ </on-render>
+ <transition on="proceed" to="ExtractTermsOfUseConsentDecisionFromFormRequest" />
+ </view-state>
+
+ <view-state id="DisplayTermsOfUseConsentDeclinedPage" view="consent/terms-of-use/terms-of-use-declined">
+ <on-render>
+ <evaluate expression="T(net.shibboleth.idp.Version)" result="requestScope.Version" />
+ <evaluate expression="flowRequestContext.getExternalContext().getNativeRequest()" result="requestScope.request" />
+ <evaluate expression="flowRequestContext.getExternalContext().getNativeResponse()" result="requestScope.response" />
+ </on-render>
+ <transition on="proceed" to="proceed" />
+ </view-state>
+
+ <action-state id="ExtractTermsOfUseConsentDecisionFromFormRequest">
+ <evaluate expression="'proceed'" />
+
+ <transition on="proceed" to="HandleTermsOfUseConsentDecision" />
+ </action-state>
+
+ <action-state id="HandleTermsOfUseConsentDecision">
+ <evaluate expression="'proceed'" />
+
+ <transition on="proceed" to="WriteTermsOfUseConsentDecisionToStorageService" />
+ </action-state>
+
+ <action-state id="WriteTermsOfUseConsentDecisionToStorageService">
+ <evaluate expression="'proceed'" />
+
+ <transition on="proceed" to="proceed" />
+ </action-state>
<end-state id="proceed" />
More information about the commits
mailing list