Skip to content

Commit

Permalink
Initial crack at an nl_surfconext channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Apr 26, 2012
1 parent 684a38c commit f19cc02
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,7 @@
<CHANNEL.import channel="it_idem"/>
<CHANNEL.import channel="jp_gakunin"/>
<CHANNEL.import channel="lv_laife"/>
<CHANNEL.import channel="nl_surfconext"/>
<CHANNEL.import channel="nl_surfnet"/>
<CHANNEL.import channel="nz_tuakiri"/>
<CHANNEL.import channel="no_feide"/>
Expand Down
30 changes: 16 additions & 14 deletions mdx/nl_surfnet/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,41 @@
<!--
Metadata signing certificate.
-->
<bean id="nl_surfnet_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<bean id="nl_surfconext_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<property name="certificateFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/nl_surfnet/metadata-signer.crt"/>
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/nl_surfconext/metadata-signer.crt"/>
</bean>
</property>
</bean>

<!--
Check the signature on a document.
-->
<bean id="nl_surfnet_checkSignature" parent="stage_parent"
<bean id="nl_surfconext_checkSignature" parent="stage_parent"
class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
p:id="nl_surfnet_checkSignature">
<property name="verificationCertificate" ref="nl_surfnet_signingCertificate"/>
<property name="verificationCertificate" ref="nl_surfconext_signingCertificate"/>
</bean>

<!--
Fetch the IdP aggregate.
-->
<bean id="nl_surfnet_idpAggregate" parent="domResourceStage_parent"
p:id="nl_surfnet_idpAggregate">
<bean id="nl_surfconext_idpAggregate" parent="domResourceStage_parent"
p:id="nl_surfconext_idpAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" value="https://wayf.surfnet.nl/federate/metadata"/>
<constructor-arg name="url" value="https://engine.surfconext.nl/authentication/proxy/idps-metadata"/>
</bean>
</property>
</bean>

<!--
Fetch the SP aggregate.
-->
<bean id="nl_surfnet_spAggregate" parent="domResourceStage_parent"
p:id="nl_surfnet_spAggregate">
<bean id="nl_surfconext_spAggregate" parent="domResourceStage_parent"
p:id="nl_surfconext_spAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
Expand All @@ -60,24 +60,26 @@
<!--
Fetch and process the exported entities as a collection.
-->
<bean id="nl_surfnet_exportedEntities" parent="composite_parent"
p:id="nl_surfnet_exportedEntities">
<bean id="nl_surfconext_exportedEntities" parent="composite_parent"
p:id="nl_surfconext_exportedEntities">
<property name="composedStages">
<list>
<!-- no export aggregate; use the production ones instead -->
<ref bean="nl_surfnet_idpAggregate"/>
<ref bean="nl_surfconext_idpAggregate"/>

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

<!-- SP singleton -->
<ref bean="nl_surfnet_spAggregate"/>
<ref bean="nl_surfconext_spAggregate"/>
<ref bean="disassemble"/>
<ref bean="standardImportActions"/>
</list>
Expand Down
8 changes: 4 additions & 4 deletions mdx/nl_surfnet/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
p:id="serializeImported">
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/nl_surfnet/imported.xml"/>
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/nl_surfconext/imported.xml"/>
</bean>
</property>
</bean>
Expand All @@ -34,7 +34,7 @@
p:id="import">
<property name="stages">
<list>
<ref bean="nl_surfnet_exportedEntities"/>
<ref bean="nl_surfconext_exportedEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
Expand All @@ -51,8 +51,8 @@
p:id="importRaw">
<property name="stages">
<list>
<ref bean="nl_surfnet_idpAggregate"/>
<ref bean="nl_surfnet_spAggregate"/>
<ref bean="nl_surfconext_idpAggregate"/>
<ref bean="nl_surfconext_spAggregate"/>
<ref bean="disassemble"/>
<ref bean="assemble"/>
<ref bean="serializeImported"/>
Expand Down

0 comments on commit f19cc02

Please sign in to comment.