Changes for Nate. :)
[java-idp.git] / resources / conf / relying-party.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4     This file is an EXAMPLE configuration file.
5
6     This file specifies relying party dependent configurations for the IdP, for example, whether SAML assertions to a 
7     particular relying party should be signed.  It also includes metadata provider and credential definitions used 
8     when answering requests to a relying party.
9 -->
10
11 <RelyingPartyGroup xmlns="urn:mace:shibboleth:2.0:relying-party"
12                    xmlns:saml="urn:mace:shibboleth:2.0:relying-party:saml"
13                    xmlns:metadata="urn:mace:shibboleth:2.0:metadata"
14                    xmlns:security="urn:mace:shibboleth:2.0:security"
15                    xmlns:samlsec="urn:mace:shibboleth:2.0:security:saml"
16                    xmlns:samlmd="urn:oasis:names:tc:SAML:2.0:metadata"
17                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18                    xsi:schemaLocation="urn:mace:shibboleth:2.0:relying-party classpath:/schema/shibboleth-2.0-relying-party.xsd
19                                        urn:mace:shibboleth:2.0:relying-party:saml classpath:/schema/shibboleth-2.0-relying-party-saml.xsd
20                                        urn:mace:shibboleth:2.0:metadata classpath:/schema/shibboleth-2.0-metadata.xsd
21                                        urn:mace:shibboleth:2.0:security classpath:/schema/shibboleth-2.0-security.xsd
22                                        urn:mace:shibboleth:2.0:security:saml classpath:/schema/shibboleth-2.0-security-policy-saml.xsd
23                                        urn:oasis:names:tc:SAML:2.0:metadata classpath:/schema/saml-schema-metadata-2.0.xsd">
24                                        
25     <!-- ========================================== -->
26     <!--      Relying Party Configurations          -->
27     <!-- ========================================== -->
28     <AnonymousRelyingParty provider="http://example.org/IdP" />
29     
30     <DefaultRelyingParty provider="http://example.org/IdP"
31                          defaultSigningCredentialRef="IdPCredential">
32         <ProfileConfiguration xsi:type="saml:ShibbolethSSOProfile" />
33         <ProfileConfiguration xsi:type="saml:SAML1AttributeQueryProfile" />
34         <ProfileConfiguration xsi:type="saml:SAML1ArtifactResolutionProfile" />
35         <ProfileConfiguration xsi:type="saml:SAML2SSOProfile" />
36         <ProfileConfiguration xsi:type="saml:SAML2AttributeQueryProfile" />
37         <ProfileConfiguration xsi:type="saml:SAML2ArtifactResolutionProfile" />
38     </DefaultRelyingParty>
39         
40     
41     <!-- ========================================== -->
42     <!--      Metadata Configuration                -->
43     <!-- ========================================== -->
44     <!-- MetadataProvider the combining other MetadataProviders -->
45     <MetadataProvider id="ShibbolethMetadata" xsi:type="ChainingMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata">
46             
47             <MetadataFilter xsi:type="ChainingFilter" xmlns="urn:mace:shibboleth:2.0:metadata">
48                 <!-- MetadataFilter xsi:type="SignatureValidation" trustEngineRef="shibboleth.SignatureTrustEngine" /-->
49             </MetadataFilter>
50         
51         <!-- MetadataProvider reading metadata from a URL. -->
52         <!-- Fill in metadataURL and backingFile attributes with deployment specific information -->
53         <!--
54         <MetadataProvider id="URLMD" xsi:type="FileBackedHTTPMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata"
55                           metadataURL="http://example.org/my/metadata/file.xml" 
56                           backingFile="$IDP_HOME$/temp/metadata/somefile.xml" />
57         -->
58
59         <!-- MetadataProvider reading metadata from the filesystem -->
60         <!-- Fill in metadataFile attribute with deployment specific information -->
61         <!--
62         <MetadataProvider id="FSMD" xsi:type="FilesystemMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata"
63                           metadataFile="$IDP_HOME$/metadata/somefile.xml" maintainExpiredMetadata="true" />
64         -->
65         
66     </MetadataProvider>
67
68     
69     <!-- ========================================== -->
70     <!--     Security Configurations                -->
71     <!-- ========================================== -->
72     <security:Credential id="IdPCredential" xsi:type="security:X509Filesystem">
73         <security:PrivateKey password="changeit">$IDP_HOME$/credentials/idp.key</security:PrivateKey>
74         <security:Certificate>$IDP_HOME$/credentials/idp.crt</security:Certificate>
75     </security:Credential>
76     
77     <!-- DO NOT EDIT BELOW THIS POINT -->
78     <!-- 
79         The following trust engines and rules control every aspect of security related to incoming messages. 
80         Trust engines evaluate various tokens (like digital signatures) for trust worthiness while the 
81         security policies establish a set of checks that an incoming message must pass in order to be considered
82         secure.  Naturally some of these checks require the validation of the tokens evaluated by the trust 
83         engines and so you'll see some rules that reference the declared trust engines.
84     -->
85     <security:TrustEngine id="shibboleth.SignatureTrustEngine" xsi:type="security:ExplicitKeySignature"
86                           metadataProviderRef="ShibbolethMetadata" />
87                           
88     <security:TrustEngine id="shibboleth.CredentialTrustEngine" xsi:type="security:ExplicitKey"
89                           metadataProviderRef="ShibbolethMetadata" />
90     
91     <security:SecurityPolicy id="shibboleth.ShibbolethSSOSecurityPolicy" xsi:type="security:SecurityPolicyType">
92         <security:Rule xsi:type="samlsec:IssueInstant" required="false"/>
93         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
94     </security:SecurityPolicy>
95     
96     <security:SecurityPolicy id="shibboleth.SAML1AttributeQuerySecurityPolicy" xsi:type="security:SecurityPolicyType">
97         <security:Rule xsi:type="samlsec:Replay"/>
98         <security:Rule xsi:type="samlsec:IssueInstant"/>
99         <security:Rule xsi:type="samlsec:ProtocolWithXMLSignature" trustEngineRef="shibboleth.SignatureTrustEngine" />
100         <security:Rule xsi:type="samlsec:SAML2HTTPRedirectSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
101         <security:Rule xsi:type="samlsec:SAML2HTTPPostSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
102         <security:Rule xsi:type="security:ClientCertAuth" trustEngineRef="shibboleth.CredentialTrustEngine" />
103         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
104         <security:Rule xsi:type="security:MandatoryMessageAuthentication" />
105     </security:SecurityPolicy>
106     
107     <security:SecurityPolicy id="shibboleth.SAML1ArtifactResolutionSecurityPolicy" xsi:type="security:SecurityPolicyType">
108         <security:Rule xsi:type="samlsec:Replay"/>
109         <security:Rule xsi:type="samlsec:IssueInstant"/>
110         <security:Rule xsi:type="samlsec:ProtocolWithXMLSignature" trustEngineRef="shibboleth.SignatureTrustEngine" />
111         <security:Rule xsi:type="samlsec:SAML2HTTPRedirectSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
112         <security:Rule xsi:type="samlsec:SAML2HTTPPostSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
113         <security:Rule xsi:type="security:ClientCertAuth" trustEngineRef="shibboleth.CredentialTrustEngine" />
114         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
115         <security:Rule xsi:type="security:MandatoryMessageAuthentication" />
116     </security:SecurityPolicy>
117
118     <security:SecurityPolicy id="shibboleth.SAML2SSOSecurityPolicy" xsi:type="security:SecurityPolicyType">
119         <security:Rule xsi:type="samlsec:Replay"/>
120         <security:Rule xsi:type="samlsec:IssueInstant"/>
121         <security:Rule xsi:type="samlsec:ProtocolWithXMLSignature" trustEngineRef="shibboleth.SignatureTrustEngine" />
122         <security:Rule xsi:type="samlsec:SAML2HTTPRedirectSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
123         <security:Rule xsi:type="samlsec:SAML2HTTPPostSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
124         <security:Rule xsi:type="security:ClientCertAuth" trustEngineRef="shibboleth.CredentialTrustEngine" />
125         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
126     </security:SecurityPolicy>
127
128     <security:SecurityPolicy id="shibboleth.SAML2AttributeQuerySecurityPolicy" xsi:type="security:SecurityPolicyType">
129         <security:Rule xsi:type="samlsec:Replay"/>
130         <security:Rule xsi:type="samlsec:IssueInstant"/>
131         <security:Rule xsi:type="samlsec:ProtocolWithXMLSignature" trustEngineRef="shibboleth.SignatureTrustEngine" />
132         <security:Rule xsi:type="samlsec:SAML2HTTPRedirectSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
133         <security:Rule xsi:type="samlsec:SAML2HTTPPostSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
134         <security:Rule xsi:type="security:ClientCertAuth" trustEngineRef="shibboleth.CredentialTrustEngine" />
135         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
136         <security:Rule xsi:type="security:MandatoryMessageAuthentication" />
137     </security:SecurityPolicy>
138     
139     <security:SecurityPolicy id="shibboleth.SAML2ArtifactResolutionSecurityPolicy" xsi:type="security:SecurityPolicyType">
140         <security:Rule xsi:type="samlsec:Replay"/>
141         <security:Rule xsi:type="samlsec:IssueInstant"/>
142         <security:Rule xsi:type="samlsec:ProtocolWithXMLSignature" trustEngineRef="shibboleth.SignatureTrustEngine" />
143         <security:Rule xsi:type="samlsec:SAML2HTTPRedirectSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
144         <security:Rule xsi:type="samlsec:SAML2HTTPPostSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
145         <security:Rule xsi:type="security:ClientCertAuth" trustEngineRef="shibboleth.CredentialTrustEngine" />
146         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
147         <security:Rule xsi:type="security:MandatoryMessageAuthentication" />
148     </security:SecurityPolicy>
149     
150     <security:SecurityPolicy id="shibboleth.SAML2SLOSecurityPolicy" xsi:type="security:SecurityPolicyType">
151         <security:Rule xsi:type="samlsec:Replay"/>
152         <security:Rule xsi:type="samlsec:IssueInstant"/>
153         <security:Rule xsi:type="samlsec:ProtocolWithXMLSignature" trustEngineRef="shibboleth.SignatureTrustEngine" />
154         <security:Rule xsi:type="samlsec:SAML2HTTPRedirectSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
155         <security:Rule xsi:type="samlsec:SAML2HTTPPostSimpleSign" trustEngineRef="shibboleth.SignatureTrustEngine" />
156         <security:Rule xsi:type="security:ClientCertAuth" trustEngineRef="shibboleth.CredentialTrustEngine" />
157         <security:Rule xsi:type="samlsec:MandatoryIssuer"/>
158         <security:Rule xsi:type="security:MandatoryMessageAuthentication" />
159     </security:SecurityPolicy>
160     
161 </RelyingPartyGroup>