Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6025731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:20:35+00:00 2026-05-23T04:20:35+00:00

A WIF-based WCF service needs to call method FederatedServiceCredentials.ConfigureServiceHost() , or put the equivalent

  • 0

A WIF-based WCF service needs to call method FederatedServiceCredentials.ConfigureServiceHost(), or put the equivalent element <federatedServiceHostConfiguration> in the web.config file, to work. This is a setting on the service level, in other words it applies for all endpoints.

According to the method documentation, the ServiceHostBase instance is modified in several WIF-specific ways. For example, the authorization is replaced by a WIF-based authorization class.

Now I’d like to have a single <service> (inside <system.serviceModel><services>) with multiple <endpoint>s, where one endpoint is WIF-based, and the others are using plain Windows authentication.

Update. In response to an answer below, let me explain why we want to mix WIF and non-WIF endpoints. If we only use WIF, then each of our customers needs an STS, like AD FS. Setting this up is not difficult, but it is a hurdle, especially if they just want to test drive our software. So what we do is install in a mode where Windows integrated authentication is used (for our web services, and also for our front end), and then later they can switch to a mode where AD FS is used.

So basically we want to be able to install without AD FS to lower the barrier to entry of our application.

To do this, the <service> needs a <federatedServiceHostConfiguration>. However — and here is my problem — this affects also the non-WIF endpoints for that same service: for example, they suddenly use the WIF authorization manager (an instance of class ClaimsAuthorizationManager).

So my question is: what is the recommended way to mix WIF and non-WIF endpoints in a single WCF <service>?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:20:36+00:00Added an answer on May 23, 2026 at 4:20 am

    I don’t think you can. In your situation though, you should only have the one WIF endpoint have leave the multiple credential support to the STS.

    You can put multiple endpoints on your STS to handle different types of authentication. One for Windows, one for username/password for example.

    I did a code camp oz session last year that demonstrated this. The source is attached to my blog post at http://www.neovolve.com/post/2010/11/21/CodeCampOz-Not-a-WIF-of-federation.aspx. Have a look at the web.config in NotAWif Demo\4 – Identity Delegation\NotAWif.DelegationSTS.

    <system.serviceModel>
      <services>
        <service behaviorConfiguration="ServiceBehavior"
                        name="Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract">
    
          <endpoint address="UserName/IWSTrust13"
                            binding="ws2007HttpBinding"
                            bindingConfiguration="ws2007HttpBindingUserNameConfiguration"
                            contract="Microsoft.IdentityModel.Protocols.WSTrust.IWSTrust13SyncContract" />
    
          <endpoint address="Windows/IWSTrust13"
                    binding="ws2007HttpBinding"
                    bindingConfiguration="ws2007HttpBindingWindowsConfiguration"
                    contract="Microsoft.IdentityModel.Protocols.WSTrust.IWSTrust13SyncContract" />
    
          <endpoint address="mex"
                            binding="mexHttpsBinding"
                            contract="IMetadataExchange" />
          <host>
            <baseAddresses>
              <add baseAddress="https://localhost/NotAWif.DelegationSTS/Service.svc" />
            </baseAddresses>
          </host>
        </service>
      </services>
      <bindings>
        <ws2007HttpBinding>
          <binding name="ws2007HttpBindingUserNameConfiguration">
            <security mode="TransportWithMessageCredential">
              <transport clientCredentialType="None">
                <extendedProtectionPolicy policyEnforcement="Never" />
              </transport>
              <message clientCredentialType="UserName"
                                    establishSecurityContext="false" />
            </security>
          </binding>
          <binding name="ws2007HttpBindingWindowsConfiguration">
            <security mode="TransportWithMessageCredential">
              <transport clientCredentialType="None">
                <extendedProtectionPolicy policyEnforcement="Never" />
              </transport>
              <message clientCredentialType="Windows"
                                    establishSecurityContext="false" />
            </security>
          </binding>
        </ws2007HttpBinding>
      </bindings>
      <behaviors>
        <serviceBehaviors>
          <behavior name="ServiceBehavior">
            <serviceMetadata httpGetEnabled="true" />
            <serviceDebug includeExceptionDetailInFaults="false" />
            <serviceCredentials>
              <serviceCertificate findValue="DefaultApplicationCertificate"
                                              x509FindType="FindBySubjectName" />
            </serviceCredentials>
          </behavior>
        </serviceBehaviors>
      </behaviors>
    </system.serviceModel>
    

    This is how I configured the STS to support multiple types of authentication. The RP should only deal in claims, not claims|WindowsIdentity. It is the STS’s responsibility to convert a particular type of authentication into a set of claims that the RP will use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been research WIF a lot recently and am still quite a bit confused
We are developing an MVC app using STS. We used the WIF tools to
We build web services that are for consumption by known third-parties. We tend to
I've a problem with dojo.connect when i try to connect a dijit button to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.