FederatedServiceCredentials.ConfigureServiceHost Method

[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

Helper method that Initializes the SecurityTokenManager that will be exposed through the given ServiceHost. By default the method exposes the SecurityTokenHandlers initialized with IdentityServiceConfiguration through the ServiceHost SecurityTokenManager.

ConfigureServiceHost configures a Windows Communication Foundation (WCF) relying party with . Use the overloads of this method to specify configuration details.

ConfigureServiceHost plugs into the WCF processing pipeline by:

  1. Using the existing service credentials to build a FederatedServiceCredentials, which then replaces the existing service credentials.

  2. Replacing the WCF service authorization manager with a WIF authorization manager. Note that this method overwrites any existing authorization manager.

Overload List

Name Description
FederatedServiceCredentials.ConfigureServiceHost (ServiceHostBase) Helper method that Initializes the SecurityTokenManager that will be exposed through the given ServiceHost. By default the method exposes the SecurityTokenHandlers initialized with IdentityServiceConfiguration through the ServiceHost SecurityTokenManager.
FederatedServiceCredentials.ConfigureServiceHost (ServiceHostBase, ServiceConfiguration) Helper method that Initializes the SecurityTokenManager used by the ServiceHost. By default the method sets the SecurityTokenHandlers initialized with ServiceConfiguration on the ServiceHost.
FederatedServiceCredentials.ConfigureServiceHost (ServiceHostBase, String) Helper method that Initializes the SecurityTokenManager used by the ServiceHost. By default the method sets the SecurityTokenHandlers initialized with ServiceConfiguration on the ServiceHost.

See Also

Reference

FederatedServiceCredentials Class
FederatedServiceCredentials Members
Microsoft.IdentityModel.Tokens Namespace

Copyright © 2008 by Microsoft Corporation. All rights reserved.