b09d1c05e5c4357c2cb0053f261c761c78895371
[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              resolver="shibboleth.AttributeResolver"
33              filter="shibboleth.AttributeFilterEngine" />
34              
35     <Service id="shibboleth.SAML2AttributeAuthority"
36              xsi:type="attribute-authority:SAML2AttributeAuthority"
37              depends-on="shibboleth.AttributeResolver shibboleth.AttributeFilterEngine"
38              resolver="shibboleth.AttributeResolver"
39              filter="shibboleth.AttributeFilterEngine" />
40
41     <Service id="shibboleth.RelyingPartyConfigurationManager"
42              xsi:type="relyingParty:SAMLMDRelyingPartyConfigurationManager"
43              depends-on="shibboleth.SAML1AttributeAuthority shibboleth.SAML2AttributeAuthority">
44         <ConfigurationResource file="$IDP_HOME$/conf/relying-party.xml" xsi:type="resource:FilesystemResource" />
45     </Service>
46
47     <Service id="shibboleth.HandlerManager"
48              depends-on="shibboleth.RelyingPartyConfigurationManager"
49              xsi:type="relyingParty:SAMLMDRelyingPartyConfigurationManager">
50         <ConfigurationResource file="$IDP_HOME$/conf/handler.xml" xsi:type="resource:FilesystemResource" />
51     </Service>
52     
53     <!-- 
54         A special service that exports all services upon which it depends into the ServletContext as an attribute 
55         with the same name as the service's ID.
56     -->
57     <Service id="shibboleth.ServiceServletContextAttributeExporter"
58              depends-on="shibboleth.AttributeResolver shibboleth.AttributeFilterEngine
59                          shibboleth.SAML1AttributeAuthority shibboleth.SAML2AttributeAuthority 
60                          shibboleth.RelyingPartyConfigurationManager shibboleth.HandlerManager"
61              xsi:type="ServletContextAttributeExporter" />
62 </Services>