cf43f7f1a7f0268c26e0548bdd89f6f79d3208f4
[shibboleth/sp.git] / configs / win-shibboleth2.xml
1 <SPConfig xmlns="urn:mace:shibboleth:2.0:native:sp:config"\r
2     xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config"\r
3     xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"\r
4     xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"    \r
5     xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"\r
6     clockSkew="180">\r
7 \r
8     <!--\r
9     The InProcess section contains settings affecting web server modules.\r
10     Required for IIS, but can be removed when using other web servers.\r
11     -->\r
12     <InProcess logger="native.logger">\r
13         <ISAPI normalizeRequest="true" safeHeaderNames="true">\r
14             <!--\r
15             Maps IIS Instance ID values to the host scheme/name/port. The name is\r
16             required so that the proper <Host> in the request map above is found without\r
17             having to cover every possible DNS/IP combination the user might enter.\r
18             -->\r
19             <Site id="1" name="sp.example.org"/>\r
20             <!--\r
21             When the port and scheme are omitted, the HTTP request's port and scheme are used.\r
22             If these are wrong because of virtualization, they can be explicitly set here to\r
23             ensure proper redirect generation.\r
24             -->\r
25             <!--\r
26             <Site id="42" name="virtual.example.org" scheme="https" port="443"/>\r
27             -->\r
28         </ISAPI>\r
29     </InProcess>\r
30 \r
31     <!--\r
32     By default, in-memory StorageService, ReplayCache, ArtifactMap, and SessionCache\r
33     are used. See example-shibboleth2.xml for samples of explicitly configuring them.\r
34     -->\r
35 \r
36     <!--\r
37     To customize behavior for specific resources on IIS, and to link vhosts or\r
38     resources to ApplicationOverride settings below, use the XML syntax below.\r
39     See https://spaces.internet2.edu/display/SHIB2/NativeSPRequestMapHowTo for help.\r
40     \r
41     Apache users should rely on web server options/commands in most cases, and can remove the\r
42     RequestMapper element. See https://spaces.internet2.edu/display/SHIB2/NativeSPApacheConfig\r
43     -->\r
44     <RequestMapper type="Native">\r
45         <RequestMap>\r
46             <!--\r
47             The example requires a session for documents in /secure on the containing host with http and\r
48             https on the default ports. Note that the name and port in the <Host> elements MUST match\r
49             Apache's ServerName and Port directives or the IIS Site name in the <ISAPI> element above.\r
50             -->\r
51             <Host name="sp.example.org">\r
52                 <Path name="secure" authType="shibboleth" requireSession="true"/>\r
53             </Host>\r
54             <!-- Example of a second vhost mapped to a different applicationId. -->\r
55             <!--\r
56             <Host name="admin.example.org" applicationId="admin" authType="shibboleth" requireSession="true"/>\r
57             -->\r
58         </RequestMap>\r
59     </RequestMapper>\r
60 \r
61     <!--\r
62     The ApplicationDefaults element is where most of Shibboleth's SAML bits are defined.\r
63     Resource requests are mapped by the RequestMapper to an applicationId that\r
64     points into to this section (or to the defaults here).\r
65     -->\r
66     <ApplicationDefaults entityID="https://sp.example.org/shibboleth"\r
67                          REMOTE_USER="eppn persistent-id targeted-id">\r
68 \r
69         <!--\r
70         Controls session lifetimes, address checks, cookie handling, and the protocol handlers.\r
71         You MUST supply an effectively unique handlerURL value for each of your applications.\r
72         The value can be a relative path, a URL with no hostname (https:///path) or a full URL.\r
73         The system can compute a relative value based on the virtual host. Using handlerSSL="true"\r
74         will force the protocol to be https. You should also add a cookieProps setting of "; path=/; secure"\r
75         in that case. Note that while we default checkAddress to "false", this has a negative\r
76         impact on the security of the SP. Stealing cookies/sessions is much easier with this disabled.\r
77         -->\r
78         <Sessions lifetime="28800" timeout="3600" checkAddress="false"\r
79             handlerURL="/Shibboleth.sso" handlerSSL="false">\r
80             \r
81             <!--\r
82             SessionInitiators handle session requests and relay them to a Discovery page,\r
83             or to an IdP if possible. Automatic session setup will use the default or first\r
84             element (or requireSessionWith can specify a specific id to use).\r
85             -->\r
86 \r
87             <!-- Default directs to a specific IdP (favoring SAML 2 over Shib 1). -->\r
88             <SessionInitiator type="Chaining" Location="/Login" isDefault="true" id="Login"\r
89                               relayState="cookie" entityID="https://idp.example.org/shibboleth">\r
90               \r
91                 <SessionInitiator type="SAML2" acsIndex="1"/>\r
92                 <SessionInitiator type="Shib1" acsIndex="5"/>\r
93                 <!--\r
94                 To allow for >1 IdP, remove entityID property from Chaining element and add\r
95                 *either* of the SAMLDS or WAYF handlers below:\r
96                 \r
97                 <SessionInitiator type="SAMLDS" URL="https://ds.example.org/DS/WAYF"/>\r
98                 <SessionInitiator type="WAYF" acsIndex="5" URL="https://wayf.example.org/WAYF"/>\r
99                 -->\r
100             </SessionInitiator>\r
101             \r
102             <!--\r
103             md:AssertionConsumerService locations handle specific SSO protocol bindings,\r
104             such as SAML 2.0 POST or SAML 1.1 Artifact. The isDefault and index attributes\r
105             are used when sessions are initiated to determine how to tell the IdP where and\r
106             how to return the response.\r
107             -->\r
108             <md:AssertionConsumerService Location="/SAML2/POST" index="1"\r
109                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>\r
110             <md:AssertionConsumerService Location="/SAML2/POST-SimpleSign" index="2"\r
111                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign"/>\r
112             <md:AssertionConsumerService Location="/SAML2/Artifact" index="3"\r
113                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/>\r
114             <md:AssertionConsumerService Location="/SAML2/ECP" index="4"\r
115                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS"/>\r
116             <md:AssertionConsumerService Location="/SAML/POST" index="5"\r
117                 Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post"/>\r
118             <md:AssertionConsumerService Location="/SAML/Artifact" index="6"\r
119                 Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01"/>\r
120 \r
121             <!-- LogoutInitiators enable SP-initiated local or global/single logout of sessions. -->\r
122             <LogoutInitiator type="Chaining" Location="/Logout" relayState="cookie">\r
123                 <LogoutInitiator type="SAML2"/>\r
124                 <LogoutInitiator type="Local"/>\r
125             </LogoutInitiator>\r
126 \r
127             <!-- md:SingleLogoutService locations handle single logout (SLO) protocol messages. -->\r
128             <md:SingleLogoutService Location="/SLO/SOAP"\r
129                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>\r
130             <md:SingleLogoutService Location="/SLO/Redirect"\r
131                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/>\r
132             <md:SingleLogoutService Location="/SLO/POST"\r
133                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>\r
134             <md:SingleLogoutService Location="/SLO/Artifact"\r
135                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/>\r
136 \r
137             <!-- md:ManageNameIDService locations handle NameID management (NIM) protocol messages. -->\r
138             <md:ManageNameIDService Location="/NIM/SOAP"\r
139                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>\r
140             <md:ManageNameIDService Location="/NIM/Redirect"\r
141                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"/>\r
142             <md:ManageNameIDService Location="/NIM/POST"\r
143                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"/>\r
144             <md:ManageNameIDService Location="/NIM/Artifact"\r
145                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact"/>\r
146 \r
147             <!--\r
148             md:ArtifactResolutionService locations resolve artifacts issued when using the\r
149             SAML 2.0 HTTP-Artifact binding on outgoing messages, generally uses SOAP.\r
150             -->\r
151             <md:ArtifactResolutionService Location="/Artifact/SOAP" index="1"\r
152                 Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>\r
153 \r
154             <!-- Extension service that generates "approximate" metadata based on SP configuration. -->\r
155             <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/>\r
156 \r
157             <!-- Status reporting service. -->\r
158             <Handler type="Status" Location="/Status" acl="127.0.0.1"/>\r
159 \r
160             <!-- Session diagnostic service. -->\r
161             <Handler type="Session" Location="/Session" showAttributeValues="false"/>\r
162 \r
163         </Sessions>\r
164 \r
165         <!--\r
166         Allows overriding of error template filenames. You can also add attributes with values\r
167         that can be plugged into the templates.\r
168         -->\r
169         <Errors supportContact="root@localhost"\r
170             logoLocation="/shibboleth-sp/logo.jpg"\r
171             styleSheet="/shibboleth-sp/main.css"/>\r
172         \r
173         <!-- Chains together all your metadata sources. -->\r
174         <MetadataProvider type="Chaining">\r
175             <!-- Example of remotely supplied batch of signed metadata. -->\r
176             <!--\r
177             <MetadataProvider type="XML" uri="http://federation.org/federation-metadata.xml"\r
178                  backingFilePath="federation-metadata.xml" reloadInterval="7200">\r
179                <MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200"/>\r
180                <MetadataFilter type="Signature" certificate="fedsigner.pem"/>\r
181             </MetadataProvider>\r
182             -->\r
183 \r
184             <!-- Example of locally maintained metadata. -->\r
185             <!--\r
186             <MetadataProvider type="XML" file="partner-metadata.xml"/>\r
187             -->\r
188         </MetadataProvider>\r
189 \r
190         <!-- Map to extract attributes from SAML assertions. -->\r
191         <AttributeExtractor type="XML" validate="true" path="attribute-map.xml"/>\r
192         \r
193         <!-- Use a SAML query if no attributes are supplied during SSO. -->\r
194         <AttributeResolver type="Query" subjectMatch="true"/>\r
195 \r
196         <!-- Default filtering policy for recognized attributes, lets other data pass. -->\r
197         <AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/>\r
198 \r
199         <!-- Simple file-based resolver for using a single keypair. -->\r
200         <CredentialResolver type="File" key="sp-key.pem" certificate="sp-cert.pem"/>\r
201 \r
202         <!--\r
203         The default settings can be overridden by creating ApplicationOverride elements (see\r
204         the https://spaces.internet2.edu/display/SHIB2/NativeSPApplicationOverride topic).\r
205         Resource requests are mapped by web server commands, or the RequestMapper, to an\r
206         applicationId setting.\r
207         \r
208         Example of a second application (for a second vhost) that has a different entityID.\r
209         Resources on the vhost would map to an applicationId of "admin":\r
210         -->\r
211         <!--\r
212         <ApplicationOverride id="admin" entityID="https://admin.example.org/shibboleth"/>\r
213         -->\r
214     </ApplicationDefaults>\r
215     \r
216     <!-- Policies that determine how to process and authenticate runtime messages. -->\r
217     <SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/>\r
218 \r
219 </SPConfig>\r