SSPCPP-641 - add ability to set SOAP cipher suites
[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                          cipherSuites="ECDHE+AESGCM:ECDHE:!aNULL:!eNULL:!LOW:!EXPORT:!RC4:!SHA:!SSLv2">
69
70         <!--
71         Controls session lifetimes, address checks, cookie handling, and the protocol handlers.
72         You MUST supply an effectively unique handlerURL value for each of your applications.
73         The value defaults to /Shibboleth.sso, and should be a relative path, with the SP computing
74         a relative value based on the virtual host. Using handlerSSL="true", the default, will force
75         the protocol to be https. You should also set cookieProps to "https" for SSL-only sites.
76         Note that while we default checkAddress to "false", this has a negative impact on the
77         security of your site. Stealing sessions via cookie theft is much easier with this disabled.
78         -->
79         <Sessions lifetime="28800" timeout="3600" relayState="ss:mem"
80                   checkAddress="false" handlerSSL="false" cookieProps="http">
81
82             <!--
83             Configures SSO for a default IdP. To allow for >1 IdP, remove
84             entityID property and adjust discoveryURL to point to discovery service.
85             (Set discoveryProtocol to "WAYF" for legacy Shibboleth WAYF support.)
86             You can also override entityID on /Login query string, or in RequestMap/htaccess.
87             -->
88             <SSO entityID="https://idp.example.org/idp/shibboleth"
89                  discoveryProtocol="SAMLDS" discoveryURL="https://ds.example.org/DS/WAYF">
90               SAML2 SAML1
91             </SSO>
92
93             <!-- SAML and local-only logout. -->
94             <Logout>SAML2 Local</Logout>
95
96             <!-- Extension service that generates "approximate" metadata based on SP configuration. -->
97             <Handler type="MetadataGenerator" Location="/Metadata" signing="false"/>
98
99             <!-- Status reporting service. -->
100             <Handler type="Status" Location="/Status" acl="127.0.0.1 ::1"/>
101
102             <!-- Session diagnostic service. -->
103             <Handler type="Session" Location="/Session" showAttributeValues="false"/>
104
105             <!-- JSON feed of discovery information. -->
106             <Handler type="DiscoveryFeed" Location="/DiscoFeed"/>
107         </Sessions>
108
109         <!--
110         Allows overriding of error template information/filenames. You can
111         also add attributes with values that can be plugged into the templates.
112         -->
113         <Errors supportContact="root@localhost"
114             helpLocation="/about.html"
115             styleSheet="/shibboleth-sp/main.css"/>
116         
117         <!-- Example of remotely supplied batch of signed metadata. -->
118         <!--
119         <MetadataProvider type="XML" uri="http://federation.org/federation-metadata.xml"
120               backingFilePath="federation-metadata.xml" reloadInterval="7200">
121             <MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200"/>
122             <MetadataFilter type="Signature" certificate="fedsigner.pem"/>
123             <DiscoveryFilter type="Blacklist" matcher="EntityAttributes" trimTags="true" 
124               attributeName="http://macedir.org/entity-category"
125               attributeNameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
126               attributeValue="http://refeds.org/category/hide-from-discovery" />
127         </MetadataProvider>
128         -->
129
130         <!-- Example of locally maintained metadata. -->
131         <!--
132         <MetadataProvider type="XML" file="partner-metadata.xml"/>
133         -->
134
135         <!-- Map to extract attributes from SAML assertions. -->
136         <AttributeExtractor type="XML" validate="true" reloadChanges="false" path="attribute-map.xml"/>
137         
138         <!-- Use a SAML query if no attributes are supplied during SSO. -->
139         <AttributeResolver type="Query" subjectMatch="true"/>
140
141         <!-- Default filtering policy for recognized attributes, lets other data pass. -->
142         <AttributeFilter type="XML" validate="true" path="attribute-policy.xml"/>
143
144         <!-- Simple file-based resolver for using a single keypair. -->
145         <CredentialResolver type="File" key="sp-key.pem" certificate="sp-cert.pem"/>
146
147         <!--
148         The default settings can be overridden by creating ApplicationOverride elements (see
149         the https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPApplicationOverride topic).
150         Resource requests are mapped by web server commands, or the RequestMapper, to an
151         applicationId setting.
152         
153         Example of a second application (for a second vhost) that has a different entityID.
154         Resources on the vhost would map to an applicationId of "admin":
155         -->
156         <!--
157         <ApplicationOverride id="admin" entityID="https://admin.example.org/shibboleth"/>
158         -->
159     </ApplicationDefaults>
160     
161     <!-- Policies that determine how to process and authenticate runtime messages. -->
162     <SecurityPolicyProvider type="XML" validate="true" path="security-policy.xml"/>
163
164     <!-- Low-level configuration about protocols and bindings available for use. -->
165     <ProtocolProvider type="XML" validate="true" reloadChanges="false" path="protocols.xml"/>
166
167 </SPConfig>