/
75.http-request-extraction.patch
54 lines (53 loc) · 3.5 KB
/
75.http-request-extraction.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
diff -aurN shibboleth-idp.orig/conf/intercept/profile-intercept.xml shibboleth-idp/conf/intercept/profile-intercept.xml
--- shibboleth-idp.orig/conf/intercept/profile-intercept.xml 2021-08-16 16:34:52.722000000 +0100
+++ shibboleth-idp/conf/intercept/profile-intercept.xml 2021-08-17 08:04:56.823777069 +0100
@@ -37,6 +37,8 @@
<bean id="intercept/external" parent="shibboleth.InterceptFlow" />
<bean id="intercept/gluu-release-attributes-post-processor" parent="shibboleth.consent.AttributeReleaseFlow" />
+
+ <bean id="intercept/gluu-populate-context" parent="shibboleth.InterceptFlow" />
</list>
</property>
</bean>
diff -aurN shibboleth-idp.orig/flows/intercept/gluu-populate-context/gluu-populate-context-beans.xml shibboleth-idp/flows/intercept/gluu-populate-context/gluu-populate-context-beans.xml
--- shibboleth-idp.orig/flows/intercept/gluu-populate-context/gluu-populate-context-beans.xml 1970-01-01 01:00:00.000000000 +0100
+++ shibboleth-idp/flows/intercept/gluu-populate-context/gluu-populate-context-beans.xml 2021-08-17 07:49:24.702291699 +0100
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:util="http://www.springframework.org/schema/util" xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+ http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
+
+ default-init-method="initialize" default-destroy-method="destroy">
+
+ <bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer" p:placeholderPrefix="%{" p:placeholderSuffix="}" />
+
+ <bean class="net.shibboleth.idp.profile.impl.ProfileActionBeanPostProcessor" />
+ <bean class="net.shibboleth.ext.spring.config.IdentifiableBeanPostProcessor" />
+
+ <bean id="ExtractHttpRequestParameters" class="org.gluu.idp.intercept.ExtractHttpRequestParameters" scope="prototype"
+ p:httpRequest-ref="shibboleth.HttpServletRequest"/>
+
+</beans>
diff -aurN shibboleth-idp.orig/flows/intercept/gluu-populate-context/gluu-populate-context-flow.xml shibboleth-idp/flows/intercept/gluu-populate-context/gluu-populate-context-flow.xml
--- shibboleth-idp.orig/flows/intercept/gluu-populate-context/gluu-populate-context-flow.xml 1970-01-01 01:00:00.000000000 +0100
+++ shibboleth-idp/flows/intercept/gluu-populate-context/gluu-populate-context-flow.xml 2021-08-17 07:50:01.622118963 +0100
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<flow xmlns="http://www.springframework.org/schema/webflow"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow.xsd"
+ parent="intercept.abstract">
+
+ <action-state id="GluuPopulateContext">
+ <evaluate expression="ExtractHttpRequestParameters" />
+ <evaluate expression="'proceed'" />
+ <transition on="proceed" to="proceed" />
+ </action-state>
+
+ <bean-import resource="gluu-populate-context-beans.xml" />
+
+</flow>