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 8630409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:03:25+00:00 2026-06-12T09:03:25+00:00

I have an asp.net web application that makes calls to several WCF services. The

  • 0

I have an asp.net web application that makes calls to several WCF services. The web app is located at http://www.mydomain.com and the services are at services.mydomain.com. They are hosted from the same server.

I’ve just added secure endpoints (bassicHttpBindings) to the services that use Transport security (https) and Windows authenication:

<binding name="WindowsSecuredBinding">
  <security mode="Transport">
    <transport clientCredentialType="Windows" />
  </security>
</binding>

and configured the client web app to use these new secure endpoints. I was expecting the next step to be writing some code in the web app to set the client credentials in order to pass the Windows authentication. To my surprise, the service calls are succeeding without setting the client credentials. I’m assuming it must be sending the account that the web app is running under but don’t know how to verify that. In other scenarios I thought I’ve seen the client credentials having no implicit default.

So I have two questions:

  1. How is authentication succeeding? Does it send the user the app runs under, the browser user’s credentials, no credentials?
  2. How can I debug/log/trace the authentication process? I’d like to at least see the username that’s being authenticated so I can validate the security.
  • 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-12T09:03:27+00:00Added an answer on June 12, 2026 at 9:03 am
    1. With your current configuration as you have it on the server and client side the client is sending the creditials that it is running under. Because the credential type is set to Windows that causes the security negotiation to check in Kerberos if you are in a domain or in NTLM if it’s a workgroup environment. (More information can be found here.)
    2. To debug the authentication process WCF has an auditing feature that can be enabled. Instructions for adding auditing are here.

    Here’s the important parts from the auditing MSDN page:

    <behaviors>
     <behavior name="myAuditBehavior">
      <serviceSecurityAudit auditLogLocation="Application"
        suppressAuditFailure="false" 
        serviceAuthorizationAuditLevel="None" 
        messageAuthenticationAuditLevel="SuccessOrFailure" />
     </behavior>
    </behaviors>
    

    and adding the behavior to the service:

    <service type="[Your service type here]" behaviorConfiguration="myAuditBehavior">
    

    Once auditing is enabled you can see all the authorization activity (success and failure if you configure it that way). This should allow you to validate that your security is setup they way you would like it.

    If you happen to need functionality of passing the credentials of the user that is using the ASP.NET web app (this is called Impersonation) the msdn documentation on that is found on this page “Delagation and Impersonation with WCF“.

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

Sidebar

Related Questions

I have an ASP.NET MVC web application that makes REST style web service calls
I have a ASP.NET Web Forms application that internally makes many SOAP and REST
I have an ASP .NET Web Forms application that makes use of the 'WebMethod'
I have an ASP.NET web application that calls a .NET DLL, that in turn
I have a asp.net web application that uses C#. It logs in on a
I have an ASP.NET web application that is using forms authentication. Everything is configured
I have an ASP.NET web application that, for whatever reason, when it is deployed
So I have this asp.net web application that I renamed. I changed the assembly
I have an ASP.NET (v2.0) web application that uses a reference to a SQL
We have a asp.net 2.0 web application that is running on IIS7. It is

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.