Skip to content

Commit

Permalink
Add a basic channel for the Danish WAYF federation, consisting of jus…
Browse files Browse the repository at this point in the history
…t the single shared IdP.
  • Loading branch information
iay committed Jun 28, 2011
1 parent c847135 commit 428d615
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
33 changes: 33 additions & 0 deletions mdx/dk_wayf/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">


<!--
Fetch the IdP metadata.
-->
<bean id="dk_wayf_idpMetadata" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="dk_wayf_idpMetadata"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="https://wayf.wayf.dk/saml2/idp/metadata.php"/>
</bean>

<!--
Fetch and process the exported entities as a collection.
-->
<bean id="dk_wayf_exportedEntities" class="net.shibboleth.metadata.pipeline.CompositeStage"
init-method="initialize" lazy-init="true">
<property name="id" value="dk_wayf_exportedEntities"/>
<property name="composedStages">
<list>
<ref bean="dk_wayf_idpMetadata"/>
<ref bean="standardImportActions"/>
</list>
</property>
</bean>

</beans>
59 changes: 59 additions & 0 deletions mdx/dk_wayf/verbs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Verb definitions for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<!--
Import commonly used beans.
-->
<import resource="../common-beans.xml"/>

<!--
Import channel-specific beans.
-->
<import resource="beans.xml"/>

<bean id="serializeImported" class="net.shibboleth.metadata.pipeline.SerializationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="serializeImported"/>
<property name="serializer" ref="serializer"/>
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/dk_wayf/imported.xml"/>
</bean>
</property>
</bean>

<bean id="import" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="import"/>
<property name="stages">
<list>
<ref bean="dk_wayf_exportedEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<!--
importRaw
Fetch the separate IdP and SP aggregates, disassemble them into individual entities
and then build up a single aggregate from all combined.
-->
<bean id="importRaw" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="importRaw"/>
<property name="stages">
<list>
<ref bean="dk_wayf_idpMetadata"/>
<ref bean="assemble"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

</beans>

0 comments on commit 428d615

Please sign in to comment.