Skip to content

Commit

Permalink
Add eduGAIN handling for cz_eduid.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 27, 2012
1 parent 2615849 commit 558d08f
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 11 deletions.
3 changes: 3 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@
<CHANNEL.import channel="ca_caf"/>
<CHANNEL.import channel="ch_switchaai"/>
<CHANNEL.import channel="cz_eduid"/>
<CHANNEL.do channel="cz_eduid" verb="importProduction"/>
<CHANNEL.import channel="de_dfnaai"/>
<CHANNEL.import channel="dk_wayf"/>
<CHANNEL.import channel="es_sir"/>
Expand Down Expand Up @@ -936,6 +937,7 @@
<target name="flow.importProduction.all">
<CHANNEL.do verb="importProduction" channel="be_belnet"/>
<CHANNEL.do verb="importProduction" channel="br_cafe"/>
<CHANNEL.do verb="importProduction" channel="cz_eduid"/>
</target>

<!--
Expand All @@ -946,6 +948,7 @@
<target name="flow.importEdugain.all">
<CHANNEL.do verb="importEdugain" channel="be_belnet"/>
<CHANNEL.do verb="importEdugain" channel="br_cafe"/>
<CHANNEL.do verb="importEdugain" channel="cz_eduid"/>
</target>

<!--
Expand Down
62 changes: 57 additions & 5 deletions mdx/cz_eduid/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
See: http://www.eduid.cz/wiki/en/eduid/tech/details/index
-->

<!--
Location of various resources.
-->
<bean id="cz_eduid_productionAggregate_url" class="java.lang.String">
<constructor-arg value="https://metadata.eduid.cz/entities/eduid"/>
</bean>
<bean id="cz_eduid_edugainAggregate_url" class="java.lang.String">
<constructor-arg value="https://metadata.eduid.cz/entities/eduid2edugain"/>
</bean>

<!--
Fetch the production aggregate.
-->
Expand All @@ -29,7 +39,20 @@
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" value="https://metadata.eduid.cz/entities/eduid"/>
<constructor-arg name="url" ref="cz_eduid_productionAggregate_url"/>
</bean>
</property>
</bean>

<!--
Fetch the eduGAIN export aggregate.
-->
<bean id="cz_eduid_edugainAggregate" parent="domResourceStage_parent"
p:id="cz_eduid_edugainAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="cz_eduid_edugainAggregate_url"/>
</bean>
</property>
</bean>
Expand All @@ -55,13 +78,12 @@
</bean>

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

<!--
Expand All @@ -80,4 +102,34 @@
</property>
</bean>

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

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

<ref bean="disassemble"/>

<ref bean="standardImportActions"/>
</list>
</property>
</bean>

<!--
Select primary export aggregate.
-->
<alias alias="cz_eduid_exportedAggregate" name="cz_eduid_edugainAggregate"/>
<alias alias="cz_eduid_exportedEntities" name="cz_eduid_edugainEntities"/>
</beans>
35 changes: 29 additions & 6 deletions mdx/cz_eduid/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="cz_eduid_exportedEntities"/>
<list>
<ref bean="cz_eduid_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="cz_eduid_productionAggregate"/>
Expand All @@ -51,4 +51,27 @@
</property>
</bean>

<bean id="importEdugain" parent="pipeline_parent"
p:id="importEdugain">
<property name="stages">
<list>
<ref bean="cz_eduid_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="cz_eduid_edugainAggregate"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

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

0 comments on commit 558d08f

Please sign in to comment.