1 <?xml version=
"1.0" encoding=
"utf-8" ?>
3 Copyright (c) Microsoft Corporation. All rights reserved.
7 <add key=
"bookDB" value=
"BookDB.txt" />
8 <add key=
"certDistinguishedName" value=
"CN=BookStoreSTS.com" />
9 <add key=
"targetDistinguishedName" value=
"CN=BookStoreService.com" />
10 <add key=
"issuerDistinguishedName" value=
"CN=HomeRealmSTS.com" />
16 <behavior name=
"BookStoreSTSBehavior">
19 The serviceCredentials behavior allows one to define a service certificate.
20 A service certificate is used by a client to authenticate the STS and provide message protection.
21 This configuration references the "BookStoreSTS.com" certificate installed during setup of the sample.
23 <serviceCertificate storeLocation=
"LocalMachine"
25 x509FindType=
"FindBySubjectName"
26 findValue=
"BookStoreSTS.com" />
28 The serviceCredentials behavior allows one to define validation parameters for issued tokens.
29 This configuration adds the "HomeRealmSTS.com" certificate to a list of known certificates. This
30 means that the STS will accept tokens issued by "HomeRealmSTS.com".
32 <issuedTokenAuthentication>
34 <add storeLocation ='LocalMachine'
35 storeName ='TrustedPeople'
36 x509FindType ='FindBySubjectName'
37 findValue ='HomeRealmSTS.com'
/>
39 </issuedTokenAuthentication>
42 The serviceMetadata behavior allows one to enable metadata (e.g. WSDL, Policy) publishing.
43 This configuration enables publishing of such data over HTTP GET.
45 <serviceMetadata httpGetEnabled =
"true" />
51 <wsFederationHttpBinding>
52 <!-- This is the binding for the clients requesting tokens from this STS. It redirects clients to the HomeRealm STS -->
53 <binding name='BookStoreSTSBinding'
>
54 <security mode='Message'
>
56 <issuerMetadata address='http://localhost/FederationSample/HomeRealmSTS/STS.svc/mex'
>
58 The HomeRealm STS will, in all likelyhood, be running on a machine whose domain name
59 is NOT HomeRealmSTS.com, but will identify itself using a certificate containing
60 "HomeRealmSTS.com" as its subject name. The identity configuration element here tells
61 consumers of the service to expect a DNS name of "HomeRealmSTS.com" when talking to
65 <dns value ='HomeRealmSTS.com'
/>
71 </wsFederationHttpBinding>
75 <service name=
"Microsoft.ServiceModel.Samples.Federation.BookStoreSTS"
76 behaviorConfiguration=
"BookStoreSTSBehavior">
78 This is the HTTP endpoint that supports clients requesing tokens. This endpoint requires that clients
79 authenticate using a token issued by the "HomeRealmSTS.com" STS.
82 binding=
"wsFederationHttpBinding"
83 bindingConfiguration='BookStoreSTSBinding'
84 contract=
"Microsoft.ServiceModel.Samples.Federation.ISecurityTokenService" />
86 This is the HTTP endpoint that supports IMetadataExchange.
88 <endpoint address=
"mex"
89 binding=
"mexHttpBinding"
90 contract=
"IMetadataExchange" />
93 </system.serviceModel
>