Skip to content

Commit

Permalink
eduGAIN support for at_aconet channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Aug 10, 2013
1 parent e4d3ed7 commit bee0191
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 9 deletions.
132 changes: 128 additions & 4 deletions mdx/at_aconet/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<bean id="at_aconet_otherAggregate_url" class="java.lang.String">
<constructor-arg value="https://wayf.aco.net/md/aconet-interfed-metadata.xml"/>
</bean>
<!-- eduGAIN export aggregate -->
<bean id="at_aconet_edugainAggregate_url" class="java.lang.String">
<constructor-arg value="https://wayf.aco.net/md/edugain-upstream.xml"/>
</bean>

<!--
Fetch the production aggregate.
Expand All @@ -41,6 +45,19 @@
</property>
</bean>

<!--
Fetch the eduGAIN export aggregate.
-->
<bean id="at_aconet_edugainAggregate" parent="DomResourceSourceStage"
p:id="at_aconet_edugainAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="at_aconet_edugainAggregate_url"/>
</bean>
</property>
</bean>

<!--
Signing certificate.
-->
Expand All @@ -62,13 +79,51 @@
</bean>

<!--
Fetch and process the exported entities as a collection.
at_aconet_registrar
Unique ID for the registrar associated with this channel.
-->
<bean id="at_aconet_exportedEntities" parent="CompositeStage"
p:id="at_aconet_exportedEntities">
<bean id="at_aconet_registrar" class="java.lang.String">
<constructor-arg value="http://eduid.at"/>
</bean>

<!--
at_aconet_check_regauth
Any registrationAuthority already present on an entity in this
channel must match the known registration authority value.
-->
<bean id="at_aconet_check_regauth" parent="check_regauth_parent"
p:id="at_aconet_check_regauth">
<property name="transformParameters">
<map>
<entry key="expectedAuthority" value-ref="at_aconet_registrar"/>
</map>
</property>
</bean>

<!--
at_aconet_default_regauth
Provide a default registrationAuthority appropriate to
this channel.
-->
<bean id="at_aconet_default_regauth" parent="default_regauth_parent"
p:id="at_aconet_default_regauth">
<property name="transformParameters">
<map>
<entry key="defaultAuthority" value-ref="at_aconet_registrar"/>
</map>
</property>
</bean>

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

<!--
Expand All @@ -91,4 +146,73 @@
</property>
</bean>

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

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

<ref bean="disassemble"/>

<ref bean="at_aconet_default_regauth"/>
<ref bean="at_aconet_check_regauth"/>

<ref bean="standardImportActions"/>

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

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

<!--
Verify the entities in the eduGAIN export aggregate.
-->
<bean id="at_aconet_verifyEdugain" parent="CompositeStage"
p:id="at_aconet_verifyEdugain">
<property name="composedStages">
<list>
<ref bean="at_aconet_edugainAggregate"/>

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

<ref bean="disassemble"/>

<ref bean="at_aconet_default_regauth"/>
<ref bean="at_aconet_check_regauth"/>

<ref bean="standardVerifyActions"/>

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

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

<!--
Select primary export aggregate.
-->
<alias alias="at_aconet_exportedAggregate" name="at_aconet_edugainAggregate"/>
<alias alias="at_aconet_exportedEntities" name="at_aconet_edugainEntities"/>
</beans>
42 changes: 37 additions & 5 deletions mdx/at_aconet/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
</property>
</bean>

<bean id="import" parent="SimplePipeline"
p:id="import">
<bean id="importProduction" parent="SimplePipeline"
p:id="importProduction">
<property name="stages">
<list>
<ref bean="at_aconet_exportedEntities"/>
<ref bean="at_aconet_productionEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importRaw" parent="SimplePipeline"
p:id="importRaw">
<bean id="importProductionRaw" parent="SimplePipeline"
p:id="importProductionRaw">
<property name="stages">
<list>
<ref bean="at_aconet_productionAggregate"/>
Expand All @@ -52,4 +52,36 @@
</property>
</bean>

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

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

<bean id="verifyEdugain" parent="SimplePipeline"
p:id="verifyEdugain">
<property name="stages">
<list>
<ref bean="at_aconet_verifyEdugain"/>
</list>
</property>
</bean>

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

0 comments on commit bee0191

Please sign in to comment.