Skip to content

Commit

Permalink
Add hr_eduhr channel (Croatia).
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 27, 2012
1 parent b66f623 commit dcf9408
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@
<CHANNEL.do verb="importEdugain" channel="be_belnet"/>
<CHANNEL.do verb="importEdugain" channel="br_cafe"/>
<CHANNEL.do verb="importEdugain" channel="cz_eduid"/>
<CHANNEL.do verb="importEdugain" channel="hr_eduhr"/>
</target>

<!--
Expand Down
88 changes: 88 additions & 0 deletions mdx/hr_eduhr/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
default-lazy-init="true"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
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
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<!--
Location of various resources.
-->
<bean id="hr_eduhr_edugainAggregate_url" class="java.lang.String">
<constructor-arg value="https://login.aaiedu.hr/sso/module.php/aggregator/?id=aaieduhr_edugain"/>
</bean>

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

<!--
Signing certificate.
-->
<bean id="hr_eduhr_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
<property name="certificateFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/hr_eduhr/metadata.crt"/>
</bean>
</property>
</bean>

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

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

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

<ref bean="disassemble"/>

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

<!--
Select primary export aggregate.
-->
<alias alias="hr_eduhr_exportedAggregate" name="hr_eduhr_edugainAggregate"/>
<alias alias="hr_eduhr_exportedEntities" name="hr_eduhr_edugainEntities"/>
</beans>
26 changes: 26 additions & 0 deletions mdx/hr_eduhr/metadata.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIEbDCCA1SgAwIBAgICAVYwDQYJKoZIhvcNAQEFBQAwQTETMBEGCgmSJomT8ixk
ARkTA25ldDEVMBMGCgmSJomT8ixkARkTBWdlYW50MRMwEQYDVQQDEwplZHVHQUlO
U0NBMB4XDTEwMDYxMDA3NTk1NloXDTE4MDExNDA3NTk1NlowWTETMBEGCgmSJomT
8ixkARkWA25ldDEVMBMGCgmSJomT8ixkARkWBWdlYW50MREwDwYDVQQKEwhBQUlF
ZHVIcjEYMBYGA1UEAxMPbG9naW4uYWFpZWR1LmhyMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEAxSGZkVlXr7xZYvilQxq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g
WNGadqKCtBzF1GLkZQSsgiQUIVD3YG6OYBHzi6+/Shl3oueoMGWa8NQdycPHiz0q
BS3CuCVwpJAoGymxJqoyWVkyKcrsYpwFgNq0PoAhN78=
-----END CERTIFICATE-----
7 changes: 7 additions & 0 deletions mdx/hr_eduhr/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# `hr_eduhr` channel

Croatia -- AAI@EduHr federation

eduGAIN participant per the [eduGAIN technical site](http://www.edugain.org/technical/status.php)

This channel is missing production aggregate handling because we don't know where that aggregate lives.
56 changes: 56 additions & 0 deletions mdx/hr_eduhr/verbs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Verb definitions for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
default-lazy-init="true"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
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
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

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

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

<bean id="serializeImported" parent="serialize_parent"
p:id="serializeImported">
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/hr_eduhr/imported.xml"/>
</bean>
</property>
</bean>

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

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

0 comments on commit dcf9408

Please sign in to comment.