[java-identity-provider COMMIT] in /trunk: idp-conf/src/main/resources/conf/intercept/consent-intercept-config.xml id...

noreply at shibboleth.net noreply at shibboleth.net
Wed Dec 17 15:11:19 EST 2014


Author: tzeller
Date: Wed Dec 17 15:11:18 2014
New Revision: 7156

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7156&view=rev
Log:
IDP-511 Use symbolics to reduce client-side storage of attribute names.

Modified:
    trunk/idp-conf/src/main/resources/conf/intercept/consent-intercept-config.xml
    trunk/idp-conf/src/main/resources/system/conf/profile-intercept-system.xml
    trunk/idp-conf/src/main/resources/system/flows/intercept/attribute-release-beans.xml
    trunk/idp-consent/src/main/java/net/shibboleth/idp/consent/storage/ConsentSerializer.java
    trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/ConsentTestingSupport.java
    trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/flow/storage/CreateResultTest.java
    trunk/idp-consent/src/test/java/net/shibboleth/idp/consent/storage/ConsentSerializerTest.java

Modified: trunk/idp-conf/src/main/resources/conf/intercept/consent-intercept-config.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/intercept/consent-intercept-config.xml?rev=7156&r1=7155&r2=7156&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/intercept/consent-intercept-config.xml (original)
+++ trunk/idp-conf/src/main/resources/conf/intercept/consent-intercept-config.xml Wed Dec 17 15:11:18 2014
@@ -108,4 +108,18 @@
         </property>
     </bean>
 
+    <!--
+    Specify custom symbolic replacements for attribute names to shrink the size of results saved to client-side storage 
+    such as cookies.
+    -->
+    <bean id="shibboleth.consent.AttributeSymbolics" parent="shibboleth.consent.DefaultAttributeSymbolics" lazy-init="true">
+        <property name="sourceMap">
+            <map merge="true">
+                <!--
+                <entry key="myAttribute" value="900" />
+                -->
+            </map>
+        </property>
+    </bean>
+
 </beans>

Modified: trunk/idp-conf/src/main/resources/system/conf/profile-intercept-system.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/system/conf/profile-intercept-system.xml?rev=7156&r1=7155&r2=7156&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/system/conf/profile-intercept-system.xml (original)
+++ trunk/idp-conf/src/main/resources/system/conf/profile-intercept-system.xml Wed Dec 17 15:11:18 2014
@@ -136,4 +136,54 @@
         </property>
     </bean>
 
+    <!--
+    Defining this map of attribute names to numbers allows us to specify symbolic text
+    replacements that shrink the size of results saved to client-side storage such as cookies.
+    -->
+    <bean id="shibboleth.consent.DefaultAttributeSymbolics"
+        class="org.springframework.beans.factory.config.MapFactoryBean" abstract="true">
+        <property name="sourceMap">
+            <map>
+                <!-- Attribute resolver core schema attributes -->
+                <entry key="email" value="100" />
+                <entry key="homePhone" value="101" />
+                <entry key="homePostalAddress" value="102" />
+                <entry key="mobileNumber" value="103" />
+                <entry key="pagerNumber" value="104" />
+                <entry key="commonName" value="105" />
+                <entry key="surname" value="106" />
+                <entry key="locality" value="107" />
+                <entry key="stateProvince" value="108" />
+                <entry key="street" value="109" />
+                <entry key="organizationName" value="110" />
+                <entry key="organizationalUnit" value="111" />
+                <entry key="title" value="112" />
+                <entry key="postalAddress" value="113" />
+                <entry key="postalCode" value="114" />
+                <entry key="postOfficeBox" value="115" />
+                <entry key="telephoneNumber" value="116" />
+                <entry key="givenName" value="117" />
+                <entry key="initials" value="118" />
+                <!-- Attribute resolver inetOrgPerson attributes -->
+                <entry key="departmentNumber" value="200" />
+                <entry key="displayName" value="201" />
+                <entry key="employeeNumber" value="202" />
+                <entry key="employeeType" value="203" />
+                <entry key="jpegPhoto" value="204" />
+                <entry key="preferredLanguage" value="205" />
+                <!--  Attribute resolver eduPerson attributes -->
+                <entry key="eduPersonAffiliation" value="300" />
+                <entry key="eduPersonEntitlement" value="301" />
+                <entry key="eduPersonNickname" value="302" />
+                <entry key="eduPersonOrgDN" value="303" />
+                <entry key="eduPersonOrgUnitDN" value="304" />
+                <entry key="eduPersonPrimaryAffiliation" value="305" />
+                <entry key="eduPersonPrimaryOrgUnitDN" value="306" />

[... 312 lines stripped ...]


More information about the commits mailing list