Working version of new handler configuration and supporting files.
[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               Configures SSO for a default IdP. To allow for >1 IdP, remove\r
83               entityID property and adjust discoveryURL to point to discovery service.\r
84               (Set discoveryProtocol to "WAYF" for legacy Shibboleth WAYF support.)\r
85               You can also override entityID on /Login query string, or in RequestMap/htaccess.\r
86               -->\r
87             <SSO entityID="https://idp.example.org/shibboleth"\r
88                  discoveryProtocol="SAMLDS" discoveryURL="https://ds.example.org/DS/WAYF">\r
89               SAML2 SAML1\r
90             </SSO>\r
91 \r
92             <!-- SAML and local-only logout. -->\r
93             <Logout>SAML2 Local</Logout>\r
94 \r
95             <!-- Extension service that generates "approximate" metadata based on SP configuration. -->\r
96             <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/>\r
97 \r
98             <!-- Status reporting service. -->\r
99             <Handler type="Status" Location="/Status" acl="127.0.0.1"/>\r
100 \r
101             <!-- Session diagnostic service. -->\r
102             <Handler type="Session" Location="/Session" showAttributeValues="false"/>\r
103 \r
104         </Sessions>\r
105 \r
106         <!--\r
107         Allows overriding of error template filenames. You can also add attributes with values\r
108         that can be plugged into the templates.\r
109         -->\r
110         <Errors supportContact="root@localhost"\r
111             logoLocation="/shibboleth-sp/logo.jpg"\r
112             styleSheet="/shibboleth-sp/main.css"/>\r
113         \r
114         <!-- Chains together all your metadata sources. -->\r
115         <MetadataProvider type="Chaining">\r
116             <!-- Example of remotely supplied batch of signed metadata. -->\r
117             <!--\r
118             <MetadataProvider type="XML" uri="http://federation.org/federation-metadata.xml"\r
119                  backingFilePath="federation-metadata.xml" reloadInterval="7200">\r
120                <MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200"/>\r
121                <MetadataFilter type="Signature" certificate="fedsigner.pem"/>\r
122             </MetadataProvider>\r
123             -->\r
124 \r
125             <!-- Example of locally maintained metadata. -->\r
126             <!--\r
127             <MetadataProvider type="XML" file="partner-metadata.xml"/>\r
128             -->\r
129         </MetadataProvider>\r
130 \r
131         <!-- Map to extract attributes from SAML assertions. -->\r
132         <AttributeExtractor type="XML" validate="true" path="attribute-map.xml"/>\r
133         \r
134         <!-- Use a SAML query if no attributes are supplied during SSO. -->\r
135         <AttributeResolver type="Query" subjectMatch="true"/>\r
136 \r
137         <!-- Default filtering policy for recognized attributes, lets other data pass. -->\r
138         <AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/>\r
139 \r
140         <!-- Simple file-based resolver for using a single keypair. -->\r
141         <CredentialResolver type="File" key="sp-key.pem" certificate="sp-cert.pem"/>\r
142 \r
143         <!--\r
144         The default settings can be overridden by creating ApplicationOverride elements (see\r
145         the https://spaces.internet2.edu/display/SHIB2/NativeSPApplicationOverride topic).\r
146         Resource requests are mapped by web server commands, or the RequestMapper, to an\r
147         applicationId setting.\r
148         \r
149         Example of a second application (for a second vhost) that has a different entityID.\r
150         Resources on the vhost would map to an applicationId of "admin":\r
151         -->\r
152         <!--\r
153         <ApplicationOverride id="admin" entityID="https://admin.example.org/shibboleth"/>\r
154         -->\r
155     </ApplicationDefaults>\r
156     \r
157     <!-- Policies that determine how to process and authenticate runtime messages. -->\r
158     <SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/>\r
159 \r
160     <!-- Low-level configuration about protocols and bindings available for use. -->\r
161     <ProtocolProvider type="XML" validate="true" reloadChanges="false" path="protocols.xml"/>\r
162 \r
163 </SPConfig>\r