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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:50:39+00:00 2026-05-27T11:50:39+00:00

I am learning and designing a WCF service. I have picked to use Windows

  • 0

I am learning and designing a WCF service. I have picked to use Windows credential as the authentication method, and I have configured it correctly, hopefully, because I can see the authentication audit log from event log viewer when I am testing my service hosted in the local machine.

But now I come up with this weird question: what users will not be authenticated under such configuration? Does my service authenticate all Windows user within the same Windows domain, or can I specify what specific users within my domain will/will not get authenticated?

Or, does it mean that I can only control what users (in my domain) can perform what operations my service is providing through authorization(that I know how to do)?

It sounds simple but all the material I found only tell you how to perform authentication, doesn’t say how to deny authentication request.

Update:
After reading @syneptody answer, I still have two questions:

  1. I must say my confusion between authentication and authorization is still there. The authentication means to identify the user. But if I want to tell a user belonging to the same domain as the service host(it’s IIS, by the way), who just makes a request to my service, “you are not authenticated”, what I really should say is “I do authenticate you, but you are not authorized (to perform your request)”, is it right? There is not a state of “Unauthenticated” for a user in my domain? And what if a user not belonging to my domain makes a request? My service will tell him “You are not authenticated” or “You are not authorized”? As long as this user has an identity, the service will authenticate it, and continue to investigate whether it should be authorized?
  2. @syneptody mentioned This “authorization” element. It belongs to ASP.NET, and it specifies which roles can/can’t access the resource (whether it is the website or an application hosted in the website, depending on which Web.config file it is in). Is it right? But what if I don’t use ASP.NET or don’t host the WCF in ASP.NET Compatibility Mode, will it still work like that? Actually the requirement for us is to only provide the service, so I didn’t think of using ASP.NET because in my opinion it is more like a web client consuming my service.
    By the way, my usage scenario is this service will be hosted and consumed within intranet. So I choose Windows credential for authentication and Windows Groups for role-based authorization because it requires minimum work in my opinion.
  • 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-27T11:50:39+00:00Added an answer on May 27, 2026 at 11:50 am

    Take a look at this article:
    http://msdn.microsoft.com/en-us/library/aa702682.aspx

    It does a pretty good job explaining the connection between WCF and ASP.NET. If you are able to run your services in ASP.NET compatibility mode you can use the ASP.NET authorization rules. In a domain environment where you can leverage Integrated Authentication there is no easier way to provide authorization to your services.

    Your service implementation:

    [AspNetCompatibilityRequirements(RequirementsMode AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior]
    public class Foo { ... }
    

    Then in your configuration:

    <system.web>   
        <authorization>
          <allow users="?" />
          <allow roles="DOMAIN_SECURITY_GROUP" />
          <deny users="*" />
        </authorization>
    
        <authentication mode="Windows" />
        <identity impersonate="false" />
      </system.web>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Where can I start learning Windows Form designing? For example: Microsoft Zune player, Buttons,
I just started learning on WCF and is trying to create a WCF service
I am designing a language learning site. I want to have it when someone
I have a Windows Service which performs a certain function, and then needs to
I'm currently learning Scala and I have some problems designing my case classes. I
I am designing a language learning site. I want to have it when someone
Learning xml, Can anyone help me? I have following XML code: **<book lang=en>name of
I was just designing this application and made many .aspx files which have my
i have some knowledge of css,jQuery,Grails,django,servlets and jsp still i can't see me designing
I am designing the architecture for a set of WCF services. Due to the

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.