First pass to clean up config and fix multi serivce instance bug
[java-idp.git] / resources / conf / service.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <Services xmlns="urn:mace:shibboleth:2.0:services"
4           xmlns:attribute-afp="urn:mace:shibboleth:2.0:afp"
5           xmlns:attribute-authority="urn:mace:shibboleth:2.0:attribute:authority"
6           xmlns:attribute-resolver="urn:mace:shibboleth:2.0:resolver"
7           xmlns:profile="urn:mace:shibboleth:2.0:idp:profile-handler"
8           xmlns:relyingParty="urn:mace:shibboleth:2.0:relying-party"
9           xmlns:resource="urn:mace:shibboleth:2.0:resource" 
10           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11           xsi:schemaLocation="urn:mace:shibboleth:2.0:services classpath:/schema/shibboleth-2.0-services.xsd
12                               urn:mace:shibboleth:2.0:afp classpath:/schema/shibboleth-2.0-afp.xsd
13                               urn:mace:shibboleth:2.0:attribute:authority classpath:/schema/shibboleth-2.0-attribute-authority.xsd
14                               urn:mace:shibboleth:2.0:resolver classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
15                               urn:mace:shibboleth:2.0:idp:profile-handler classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
16                               urn:mace:shibboleth:2.0:relying-party classpath:/schema/shibboleth-2.0-relying-party.xsd
17                               urn:mace:shibboleth:2.0:resource classpath:/schema/shibboleth-2.0-resource.xsd">
18
19     <Service id="shibboleth.AttributeResolver"
20              xsi:type="attribute-resolver:ShibbolethAttributeResolver">
21         <ConfigurationResource file="$IDP_HOME$/conf/attribute-resolver.xml" xsi:type="resource:FilesystemResource" />
22     </Service>
23
24     <Service id="shibboleth.AttributeFilterEngine"
25              xsi:type="attribute-afp:ShibbolethAttributeFilteringEngine">
26         <ConfigurationResource file="$IDP_HOME$/conf/attribute-filter.xml" xsi:type="resource:FilesystemResource" />
27     </Service>
28     
29     <Service id="shibboleth.SAML1AttributeAuthority"
30              xsi:type="attribute-authority:SAML1AttributeAuthority"
31              depends-on="shibboleth.AttributeResolver shibboleth.AttributeFilterEngine" />
32              
33     <Service id="shibboleth.SAML2AttributeAuthority"
34              xsi:type="attribute-authority:SAML2AttributeAuthority"
35              depends-on="shibboleth.AttributeResolver shibboleth.AttributeFilterEngine" />
36
37     <Service id="shibboleth.RelyingPartyConfigurationManager"
38              xsi:type="relyingParty:SAMLMDRelyingPartyConfigurationManager"
39              depends-on="shibboleth.SAML1AttributeAuthority shibboleth.SAML2AttributeAuthority">
40         <ConfigurationResource file="$IDP_HOME$/conf/relying-party.xml" xsi:type="resource:FilesystemResource" />
41     </Service>
42
43     <Service id="shibboleth.HandlerManager"
44              depends-on="shibboleth.RelyingPartyConfigurationManager"
45              xsi:type="relyingParty:SAMLMDRelyingPartyConfigurationManager">
46         <ConfigurationResource file="$IDP_HOME$/conf/handler.xml" xsi:type="resource:FilesystemResource" />
47     </Service>
48     
49     <!-- 
50         A special service that exports all services upon which it depends into the ServletContext as an attribute 
51         with the same name as the service's ID.
52     -->
53     <Service id="shibboleth.ServiceServletContextAttributeExporter"
54              depends-on="shibboleth.AttributeResolver shibboleth.AttributeFilterEngine
55                          shibboleth.SAML1AttributeAuthority shibboleth.SAML2AttributeAuthority 
56                          shibboleth.RelyingPartyConfigurationManager shibboleth.HandlerManager"
57              xsi:type="ServletContextAttributeExporter" />
58 </Services>