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

  • SEARCH
  • Home
  • 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 8175127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:39:29+00:00 2026-06-06T22:39:29+00:00

I have a website that logs in using an STS, then gets a delegated

  • 0

I have a website that logs in using an STS, then gets a delegated token using the bootstrap token. I am then trying to use the delgated token to connect to a WCF service. I believe its my WCF config thats wrong. I’ve tried so many different configurations I’m lost.

I’ve gotten various errors from “Description Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found.” To Audience URI missing in the SAML token.

I’m fairly sure its the federated configurations.

Any ideas would be helpful!!

Or anybody have an example of delegation to a wcf service?

Thanks!

This is the channel factory code.

  private static IService1 GetServiceProxy(SecurityToken token)
    {
        var binding = new WS2007FederationHttpBinding(WSFederationHttpSecurityMode.TransportWithMessageCredential);
        binding.Security.Message.EstablishSecurityContext = false;

        var factory = new ChannelFactory<IService1>(
            binding,
            new EndpointAddress(serviceAddress));
        factory.Credentials.SupportInteractive = false;
        factory.ConfigureChannelFactory();

        var channel = factory.CreateChannelWithIssuedToken(token);
        return channel;

    }

This is the services config. I’ve got 3 various sub-bindings that i’ve tried as well.

  <system.serviceModel>

  <diagnostics>
    <messageLogging logMessagesAtServiceLevel="true" 
                    logMessagesAtTransportLevel="true" 
                    logKnownPii="true"
                    logEntireMessage="true" 
                    logMalformedMessages="true" />
  </diagnostics>

  <bindings>

    <ws2007FederationHttpBinding>
      <binding name="ServiceHost_Service1">
        <security mode="TransportWithMessageCredential">
          <message establishSecurityContext="false" issuedKeyType="SymmetricKey">
            <issuerMetadata address="https://localhost/sts2/issue/wstrust/mex"/>
            <issuer address="http://localhost/sts2/issue/wstrust/message/username" 
                    binding="ws2007HttpBinding" 
                    bindingConfiguration="https://localhost/sts2/issue/wstrust/message/username">
              <identity>
                <certificate encodedValue="certblahblah"/>
              </identity>  
            </issuer>
            <tokenRequestParameters></tokenRequestParameters>
          </message>
        </security>
      </binding>
    </ws2007FederationHttpBinding>

    <ws2007HttpBinding>

      <binding name="https://localhost/sts2/issue/wstrust/mixed/username"
            closeTimeout="00:01:00"
            openTimeout="00:01:00"
            receiveTimeout="00:10:00"
            sendTimeout="00:01:00"
            bypassProxyOnLocal="false"
            transactionFlow="false"
            hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288"
            maxReceivedMessageSize="65536"
            messageEncoding="Text"
            textEncoding="utf-8"
            useDefaultWebProxy="true"
            allowCookies="false">
        <readerQuotas maxDepth="32"
                      maxStringContentLength="8192"
                      maxArrayLength="16384"
                      maxBytesPerRead="4096"
                      maxNameTableCharCount="16384" />
        <reliableSession ordered="true"
                         inactivityTimeout="00:10:00"
                         enabled="false" />
        <security mode="TransportWithMessageCredential">
          <transport clientCredentialType="None"
                     proxyCredentialType="None"
                     realm="" />
          <message clientCredentialType="UserName"
                   negotiateServiceCredential="true"
                   algorithmSuite="Default"
                   establishSecurityContext="false" />
        </security>
      </binding>

      <binding name="https://localhost/sts2/issue/wstrust/mixed/certificate"
             closeTimeout="00:01:00"
             openTimeout="00:01:00"
             receiveTimeout="00:10:00"
             sendTimeout="00:01:00"
             bypassProxyOnLocal="false"
             transactionFlow="false"
             hostNameComparisonMode="StrongWildcard"
             maxBufferPoolSize="524288"
             maxReceivedMessageSize="65536"
             messageEncoding="Text"
             textEncoding="utf-8"
             useDefaultWebProxy="true"
             allowCookies="false">
        <readerQuotas maxDepth="32"
                      maxStringContentLength="8192"
                      maxArrayLength="16384"
                      maxBytesPerRead="4096"
                      maxNameTableCharCount="16384" />
        <reliableSession ordered="true"
                         inactivityTimeout="00:10:00"
                         enabled="false" />
        <security mode="TransportWithMessageCredential">
          <transport clientCredentialType="None"
                     proxyCredentialType="None"
                     realm="" />
          <message clientCredentialType="Certificate"
                   negotiateServiceCredential="true"
                   algorithmSuite="Default"
                   establishSecurityContext="false" />
        </security>
      </binding>

      <binding name="https://localhost/sts2/issue/wstrust/message/username"
            closeTimeout="00:01:00"
            openTimeout="00:01:00"
            receiveTimeout="00:10:00"
            sendTimeout="00:01:00"
            bypassProxyOnLocal="false"
            transactionFlow="false"
            hostNameComparisonMode="StrongWildcard"
            maxBufferPoolSize="524288"
            maxReceivedMessageSize="65536"
            messageEncoding="Text"
            textEncoding="utf-8"
            useDefaultWebProxy="true"
            allowCookies="false">
        <readerQuotas maxDepth="32"
                      maxStringContentLength="8192"
                      maxArrayLength="16384"
                      maxBytesPerRead="4096"
                      maxNameTableCharCount="16384" />
        <reliableSession ordered="true"
                         inactivityTimeout="00:10:00"
                         enabled="false" />
        <security mode="Message">
          <transport clientCredentialType="Windows"
                     proxyCredentialType="None"
                     realm="" />
          <message clientCredentialType="UserName"
                   negotiateServiceCredential="false"
                   algorithmSuite="Default"
                   establishSecurityContext="false" />
        </security>
      </binding>

    </ws2007HttpBinding>
  </bindings>

<behaviors>
  <serviceBehaviors>
    <behavior>
      <federatedServiceHostConfiguration/>
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="true"/>
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="true"/>

      <serviceCredentials>
        <serviceCertificate  findValue="1d076d8f9dff87a44b59d09ec0e1bc60"
                  storeLocation="LocalMachine"
                  storeName="My"
                  x509FindType="FindBySerialNumber">
        </serviceCertificate>
      </serviceCredentials>

    </behavior>

  </serviceBehaviors>
</behaviors>

<extensions>
      <behaviorExtensions>
        <add name="federatedServiceHostConfiguration"
             type="Microsoft.IdentityModel.Configuration.ConfigureServiceHostBehaviorExtensionElement, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </behaviorExtensions>
</extensions>

<services>
  <service name="ServiceHost_Service1">
    <endpoint binding="ws2007FederationHttpBinding"
              bindingConfiguration="ServiceHost_Service1"
              contract="ServiceHost.IService1">
      <identity>
        <servicePrincipalName value="localhost"/>
        <certificate encodedValue="certblahblah"/>
      </identity>
    </endpoint>
    <endpoint address="MEX" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
  </service>
</services>

<!--<client>
  <endpoint binding="customBinding" 
            bindingConfiguration="ServiceHost_Service1"
            contract="ServiceHost.IService1">
    <identity>
      <userPrincipalName value="localhost"/>
      <certificate encodedValue="certblahblahblah"/>
    </identity>        
  </endpoint>

</client>-->

<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

This is the identity config

 <microsoft.identityModel>

<certificateValidation revocationMode="NoCheck"
                       certificateValidationMode="None" />
<issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
  <trustedIssuers>
    <add thumbprint="c4e675b5add2a7d6d59bbd5e04ca30b440e23eff"
            name="Thinktecture.IdentityServer" />
  </trustedIssuers>
</issuerNameRegistry>

<federatedAuthentication>
  <wsFederation passiveRedirectEnabled="false"
                issuer="https://localhost/sts2/issue/wsfed"
                realm="https://localhost/ServiceHost/" />
  <cookieHandler requireSsl="true" />
</federatedAuthentication>

<serviceCertificate>
  <certificateReference findValue="1d076d8f9dff87a44b59d09ec0e1bc60"
                  storeLocation="LocalMachine"
                  storeName="My"
                  x509FindType="FindBySerialNumber"/>
</serviceCertificate>

  • 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-06-06T22:39:31+00:00Added an answer on June 6, 2026 at 10:39 pm

    I was trying to figure out the active STS / WCF delegation scenario myself and cobbled together a sample project (note that security checks themselves are turned off, this project was to help me understand the flow and dependencies):

    https://github.com/colinbowern/TwoTierSts

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

Sidebar

Related Questions

currently I have a spider written in Java that logs into a supplier website
I have a website, in which a user Logs in. I am using an
I'm trying to write a small program that logs in to the Verizon website
So basically I have website that has names of cities that can be checked
I have a website that is mainly based on JavaScript. It uses a REST
I have a website that is mirrored cross two sub-domains. So I have separate
I have a website that in a few months is going to have traffic
I have a website that includes a few loading Gifs that spin while certain
I have a website that runs fine on IE10 Consumer Preview, Chrome, and Firefox
I have a website that is hosted on Godaddy server. For SEO I have

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.