[java-identity-provider COMMIT] in /trunk: idp-conf/src/main/resources/conf/idp.properties idp-conf/src/main/resource...

noreply at shibboleth.net noreply at shibboleth.net
Mon Aug 31 17:04:21 EDT 2015


Author: serac
Date: Mon Aug 31 17:04:20 2015
New Revision: 7717

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7717&view=rev
Log:
IDP-789 Allow exposing PRC as request attribute.

https://issues.shibboleth.net/jira/projects/IDP/issues/IDP-789
Expose PRC as ServletRequest attribute on per-flow basis using a
SWF FlowExecutionListener component that is disabled by default.
The following property controls flows for which feature is enabled:

idp.profile.exposeProfileRequestContextInSession

Added:
    trunk/idp-profile-api/src/main/java/net/shibboleth/idp/profile/context/navigate/ServletRequestProfileRequestContextLookup.java
    trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/
    trunk/idp-profile-impl/src/main/java/net/shibboleth/idp/profile/support/ProfileRequestContextFlowExecutionListener.java
Modified:
    trunk/idp-conf/src/main/resources/conf/idp.properties
    trunk/idp-conf/src/main/resources/system/conf/webflow-config.xml

Modified: trunk/idp-conf/src/main/resources/conf/idp.properties
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/idp.properties?rev=7717&r1=7716&r2=7717&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/idp.properties	(original)
+++ trunk/idp-conf/src/main/resources/conf/idp.properties	Mon Aug 31 17:04:20 2015
@@ -181,3 +181,7 @@
 # NOTE that idp.session.StorageService requires server-side storage
 # when CAS protocol is enabled
 #idp.cas.StorageService=shibboleth.StorageService
+
+# Profile flows in which the ProfileRequestContext should be exposed
+# in HTTP Session under the key "opensamlProfileRequestContext"
+#idp.profile.exposeProfileRequestContextInSession = SAML2/POST/SSO,SAML2/Redirect/SSO

Modified: trunk/idp-conf/src/main/resources/system/conf/webflow-config.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/system/conf/webflow-config.xml?rev=7717&r1=7716&r2=7717&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/system/conf/webflow-config.xml	(original)
+++ trunk/idp-conf/src/main/resources/system/conf/webflow-config.xml	Mon Aug 31 17:04:20 2015
@@ -139,6 +139,10 @@
 
     <webflow:flow-executor id="flowExecutor">
         <webflow:flow-execution-repository max-execution-snapshots="0" />
+        <webflow:flow-execution-listeners>
+            <webflow:listener ref="profileRequestContextFlowExecutionListener"
+                              criteria="%{idp.profile.exposeProfileRequestContextInSession:none}" />
+        </webflow:flow-execution-listeners>
     </webflow:flow-executor>
 
     <webflow:flow-builder-services id="flowBuilderServices" view-factory-creator="mvcViewFactoryCreator" />
@@ -152,4 +156,7 @@
         </property>
     </bean>
 
+    <bean id="profileRequestContextFlowExecutionListener"
+          class="net.shibboleth.idp.profile.support.ProfileRequestContextFlowExecutionListener" />
+
 </beans>



More information about the commits mailing list