Skip to content

Commit

Permalink
Bring lv_laife channel up to date with conventions. Add eduGAIN suppo…
Browse files Browse the repository at this point in the history
…rt for lv_laife.
  • Loading branch information
iay committed Feb 26, 2013
1 parent d1441e3 commit 898834b
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 11 deletions.
4 changes: 3 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,6 @@
<CHANNEL.import channel="int_edugain"/>
<CHANNEL.do channel="int_edugain" verb="testImport"/>
<CHANNEL.import channel="jp_gakunin"/>
<CHANNEL.import channel="lv_laife"/>
<CHANNEL.import channel="nl_surfconext"/>
<CHANNEL.import channel="nz_tuakiri"/>
<CHANNEL.import channel="si_arnes"/>
Expand Down Expand Up @@ -898,6 +897,7 @@
<CHANNEL.do verb="importProduction" channel="hu_eduid"/>
<CHANNEL.do verb="importProduction" channel="in_infed"/>
<CHANNEL.do verb="importProduction" channel="it_idem"/>
<CHANNEL.do verb="importProduction" channel="lv_laife"/>
<CHANNEL.do verb="importProduction" channel="nl_surfnet"/>
<CHANNEL.do verb="importProduction" channel="no_feide"/>
<CHANNEL.do verb="importProduction" channel="se_swamid"/>
Expand All @@ -922,6 +922,7 @@
<CHANNEL.do verb="importEdugain" channel="hr_eduhr"/>
<CHANNEL.do verb="importEdugain" channel="hu_eduid"/>
<CHANNEL.do verb="importEdugain" channel="it_idem"/>
<CHANNEL.do verb="importEdugain" channel="lv_laife"/>
<CHANNEL.do verb="importEdugain" channel="nl_surfnet"/>
<CHANNEL.do verb="importEdugain" channel="no_feide"/>
<CHANNEL.do verb="importEdugain" channel="se_swamid"/>
Expand All @@ -945,6 +946,7 @@
<CHANNEL.do verb="importEdugainRaw" channel="hr_eduhr"/>
<CHANNEL.do verb="importEdugainRaw" channel="hu_eduid"/>
<CHANNEL.do verb="importEdugainRaw" channel="it_idem"/>
<CHANNEL.do verb="importEdugainRaw" channel="lv_laife"/>
<CHANNEL.do verb="importEdugainRaw" channel="nl_surfnet"/>
<CHANNEL.do verb="importEdugainRaw" channel="no_feide"/>
<CHANNEL.do verb="importEdugainRaw" channel="se_swamid"/>
Expand Down
89 changes: 84 additions & 5 deletions mdx/lv_laife/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<!--
Location of various resources.
-->
<bean id="lv_laife_productionAggregate_url" class="java.lang.String">
<constructor-arg value="https://laife.lanet.lv/metadata/laife-metadata.xml"/>
</bean>
<bean id="lv_laife_edugainAggregate_url" class="java.lang.String">
<constructor-arg value="https://laife.lanet.lv/metadata/laife-edugain-metadata.xml"/>
</bean>

<!--
Fetch the production aggregate.
-->
Expand All @@ -19,19 +29,54 @@
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" value="https://laife.lanet.lv/metadata/laife-metadata.xml"/>
<constructor-arg name="url" ref="lv_laife_productionAggregate_url"/>
</bean>
</property>
</bean>

<!--
Fetch and process the exported entities as a collection.
Fetch the eduGAIN export aggregate.
-->
<bean id="lv_laife_exportedEntities" parent="composite_parent"
p:id="lv_laife_exportedEntities">
<bean id="lv_laife_edugainAggregate" parent="domResourceStage_parent"
p:id="lv_laife_edugainAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="lv_laife_edugainAggregate_url"/>
</bean>
</property>
</bean>

<!--
Signing certificate.
This certificate is used to sign the eduGAIN aggregate, but the production
aggregate is not signed.
-->
<bean id="lv_laife_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<property name="certificateFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/lv_laife/metadata-signer.crt"/>
</bean>
</property>
</bean>

<!--
Check signing signature.
-->
<bean id="lv_laife_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
p:id="lv_laife_checkSignature">
<property name="verificationCertificate" ref="lv_laife_signingCertificate"/>
</bean>

<!--
Fetch and process the production entities as a collection.
-->
<bean id="lv_laife_productionEntities" parent="composite_parent"
p:id="lv_laife_productionEntities">
<property name="composedStages">
<list>
<!-- no export aggregate; use the production one instead -->
<ref bean="lv_laife_productionAggregate"/>

<!--
Expand All @@ -54,4 +99,38 @@
</property>
</bean>

<!--
Fetch and process the eduGAIN export entities as a collection.
-->
<bean id="lv_laife_edugainEntities" parent="composite_parent"
p:id="lv_laife_edugainEntities">
<property name="composedStages">
<list>
<ref bean="lv_laife_edugainAggregate"/>

<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="lv_laife_checkSignature"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="standardImportActions"/>

<!-- Strip all entity attributes from this source. -->
<ref bean="stripMdattrNamespace"/>

</list>
</property>
</bean>

<!--
Select primary export aggregate.
-->
<alias alias="lv_laife_exportedAggregate" name="lv_laife_edugainAggregate"/>
<alias alias="lv_laife_exportedEntities" name="lv_laife_edugainEntities"/>
</beans>
30 changes: 30 additions & 0 deletions mdx/lv_laife/metadata-signer.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIFKDCCAxACCQDGdspjaWjwIzANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJM
VjEPMA0GA1UECBMGTGF0dmlhMQ0wCwYDVQQHEwRSaWdhMQ4wDAYDVQQKEwVMQU5F
VDEXMBUGA1UEAxMObGFpZmUubGFuZXQubHYwHhcNMTIxMTA4MTQxNzE1WhcNMTcx
MTA3MTQxNzE1WjBWMQswCQYDVQQGEwJMVjEPMA0GA1UECBMGTGF0dmlhMQ0wCwYD
VQQHEwRSaWdh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W01tck6bQvt2PKx9EVVKT86nA3M32fRy
9YcWCsywTkTpp3OoeFpqfQK46TzdBqoiQ9dWRhsuZYSWNdtotGtIHxvAUjqccvNJ
6B/b8xO4uI1/LbHL8SF+fQo3wGOypvOmng+lDCX38eMInVlqggIcQU5OteoQtJhS
MBvZ+Db/0PfOH90xBZ+ppFIQUMx4603k1udoE/zKCxHKyt7wl1Dnf54YK84+FkRB
Xp6rgsaOLwCFCpcy4hXQ4+yONhglWzoBU4xHisBkc7Vd7v3K/sD9RMOua1uMjXOW
8jjyQxhE8GLNoWejYym+KCHci3ZZHpx+Zk57bKHhSo+R+flrmbVZv/Eu/lwBV1tM
oYa720fadJrWf67O7dx946YE5iC1E6XwaYrTY8zisVV7gDM+6uWwdmGUkvcf3Xv5
eNb3ypwMXRDvvcQV/ik8bZAIlNhW0/C8C2d3LA==
-----END CERTIFICATE-----
33 changes: 28 additions & 5 deletions mdx/lv_laife/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
</property>
</bean>

<bean id="import" parent="pipeline_parent"
p:id="import">
<bean id="importProduction" parent="pipeline_parent"
p:id="importProduction">
<property name="stages">
<list>
<ref bean="lv_laife_exportedEntities"/>
<ref bean="lv_laife_productionEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importRaw" parent="pipeline_parent"
p:id="importRaw">
<bean id="importProductionRaw" parent="pipeline_parent"
p:id="importProductionRaw">
<property name="stages">
<list>
<ref bean="lv_laife_productionAggregate"/>
Expand All @@ -51,4 +51,27 @@
</property>
</bean>

<bean id="importEdugain" parent="pipeline_parent"
p:id="importEdugain">
<property name="stages">
<list>
<ref bean="lv_laife_edugainEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importEdugainRaw" parent="pipeline_parent"
p:id="importEdugainRaw">
<property name="stages">
<list>
<ref bean="lv_laife_edugainAggregate"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<alias alias="import" name="importEdugain"/>
<alias alias="importRaw" name="importEdugainRaw"/>
</beans>

0 comments on commit 898834b

Please sign in to comment.