Use shibboleth-sp as package name for compatibility.
[shibboleth/cpp-sp.git] / configs / win-shibboleth2.xml
1 <SPConfig xmlns="urn:mace:shibboleth:2.0:native:sp:config"
2     xmlns:conf="urn:mace:shibboleth:2.0:native:sp:config"
3     xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
4     xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"    
5     xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
6     clockSkew="180">
7
8     <!--
9     The InProcess section contains settings affecting web server modules.
10     Required for IIS, but can be removed when using other web servers.
11     -->
12     <InProcess logger="native.logger">
13         <ISAPI normalizeRequest="true" safeHeaderNames="true">
14             <!--
15             Maps IIS Instance ID values to the host scheme/name/port. The name is
16             required so that the proper <Host> in the request map above is found without
17             having to cover every possible DNS/IP combination the user might enter.
18             -->
19             <Site id="1" name="sp.example.org"/>
20             <!--
21             When the port and scheme are omitted, the HTTP request's port and scheme are used.
22             If these are wrong because of virtualization, they can be explicitly set here to
23             ensure proper redirect generation.
24             -->
25             <!--
26             <Site id="42" name="virtual.example.org" scheme="https" port="443"/>
27             -->
28         </ISAPI>
29     </InProcess>
30
31     <!--
32     By default, in-memory StorageService, ReplayCache, ArtifactMap, and SessionCache
33     are used. See example-shibboleth2.xml for samples of explicitly configuring them.
34     -->
35
36     <!--
37     To customize behavior for specific resources on IIS, and to link vhosts or
38     resources to ApplicationOverride settings below, use the XML syntax below.
39     See https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPRequestMapHowTo for help.
40     
41     Apache users should rely on web server options/commands in most cases, and can remove the
42     RequestMapper element. See https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApacheConfig
43     -->
44     <RequestMapper type="Native">
45         <RequestMap>
46             <!--
47             The example requires a session for documents in /secure on the containing host with http and
48             https on the default ports. Note that the name and port in the <Host> elements MUST match
49             Apache's ServerName and Port directives or the IIS Site name in the <ISAPI> element above.
50             -->
51             <Host name="sp.example.org">
52                 <Path name="secure" authType="shibboleth" requireSession="true"/>
53             </Host>
54             <!-- Example of a second vhost mapped to a different applicationId. -->
55             <!--
56             <Host name="admin.example.org" applicationId="admin" authType="shibboleth" requireSession="true"/>
57             -->
58         </RequestMap>
59     </RequestMapper>
60
61     <!--
62     The ApplicationDefaults element is where most of Shibboleth's SAML bits are defined.
63     Resource requests are mapped by the RequestMapper to an applicationId that
64     points into to this section (or to the defaults here).
65     -->
66     <ApplicationDefaults entityID="https://sp.example.org/shibboleth"
67                          REMOTE_USER="eppn persistent-id targeted-id">
68
69         <!--
70         Controls session lifetimes, address checks, cookie handling, and the protocol handlers.
71         You MUST supply an effectively unique handlerURL value for each of your applications.
72         The value defaults to /Shibboleth.sso, and should be a relative path, with the SP computing
73         a relative value based on the virtual host. Using handlerSSL="true", the default, will force
74         the protocol to be https. You should also set cookieProps to "https" for SSL-only sites.
75         Note that while we default checkAddress to "false", this has a negative impact on the
76         security of your site. Stealing sessions via cookie theft is much easier with this disabled.
77         -->
78         <Sessions lifetime="28800" timeout="3600" relayState="ss:mem"
79                   checkAddress="false" handlerSSL="false" cookieProps="http">
80
81             <!--
82             Configures SSO for a default IdP. To allow for >1 IdP, remove
83             entityID property and adjust discoveryURL to point to discovery service.
84             (Set discoveryProtocol to "WAYF" for legacy Shibboleth WAYF support.)
85             You can also override entityID on /Login query string, or in RequestMap/htaccess.
86             -->
87             <SSO entityID="https://idp.example.org/idp/shibboleth"
88                  discoveryProtocol="SAMLDS" discoveryURL="https://ds.example.org/DS/WAYF">
89               SAML2 SAML1
90             </SSO>
91
92             <!-- SAML and local-only logout. -->
93             <Logout>SAML2 Local</Logout>
94
95             <!-- Extension service that generates "approximate" metadata based on SP configuration. -->
96             <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/>
97
98             <!-- Status reporting service. -->
99             <Handler type="Status" Location="/Status" acl="127.0.0.1 ::1"/>
100
101             <!-- Session diagnostic service. -->
102             <Handler type="Session" Location="/Session" showAttributeValues="false"/>
103
104             <!-- JSON feed of discovery information. -->
105             <Handler type="DiscoveryFeed" Location="/DiscoFeed"/>
106         </Sessions>
107
108         <!--
109         Allows overriding of error template information/filenames. You can
110         also add attributes with values that can be plugged into the templates.
111         -->
112         <Errors supportContact="root@localhost"
113             helpLocation="/about.html"
114             styleSheet="/shibboleth-sp/main.css"/>
115         
116         <!-- Example of remotely supplied batch of signed metadata. -->
117         <!--
118         <MetadataProvider type="XML" uri="http://federation.org/federation-metadata.xml"
119               backingFilePath="federation-metadata.xml" reloadInterval="7200">
120             <MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200"/>
121             <MetadataFilter type="Signature" certificate="fedsigner.pem"/>
122             <DiscoveryFilter type="Blacklist" matcher="EntityAttributes" trimTags="true" 
123               attributeName="http://macedir.org/entity-category"
124               attributeNameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
125               attributeValue="http://refeds.org/category/hide-from-discovery" />
126         </MetadataProvider>
127         -->
128
129         <!-- Example of locally maintained metadata. -->
130         <!--
131         <MetadataProvider type="XML" file="partner-metadata.xml"/>
132         -->
133
134         <!-- Map to extract attributes from SAML assertions. -->
135         <AttributeExtractor type="XML" validate="true" reloadChanges="false" path="attribute-map.xml"/>
136         
137         <!-- Use a SAML query if no attributes are supplied during SSO. -->
138         <AttributeResolver type="Query" subjectMatch="true"/>
139
140         <!-- Default filtering policy for recognized attributes, lets other data pass. -->
141         <AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/>
142
143         <!-- Simple file-based resolver for using a single keypair. -->
144         <CredentialResolver type="File" key="sp-key.pem" certificate="sp-cert.pem"/>
145
146         <!--
147         The default settings can be overridden by creating ApplicationOverride elements (see
148         the https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApplicationOverride topic).
149         Resource requests are mapped by web server commands, or the RequestMapper, to an
150         applicationId setting.
151         
152         Example of a second application (for a second vhost) that has a different entityID.
153         Resources on the vhost would map to an applicationId of "admin":
154         -->
155         <!--
156         <ApplicationOverride id="admin" entityID="https://admin.example.org/shibboleth"/>
157         -->
158     </ApplicationDefaults>
159     
160     <!-- Policies that determine how to process and authenticate runtime messages. -->
161     <SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/>
162
163     <!-- Low-level configuration about protocols and bindings available for use. -->
164     <ProtocolProvider type="XML" validate="true" reloadChanges="false" path="protocols.xml"/>
165
166 </SPConfig>