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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:50:01+00:00 2026-05-25T17:50:01+00:00

Knowing so little about WCF, ASP.Net and Authentication/Authorization that I’m having a hard time

  • 0

Knowing so little about WCF, ASP.Net and Authentication/Authorization that I’m having a hard time explaining what is bothering me.

I’m using ASP.Net MVC 3 app as a front end for a system I’m developing. This web site talks to a WCF web service and gets all it’s info from it.

There will be pre-defined users and each user has unique access (so a action may resolve in info specific to that user). Also the login info for users will be stored service side.

Now the question is, how do I handle authentication and/or authorization?

I want users to be able to log in to the website so I guess he will make a validation call over to the webservice and if validated set a forms.authentication cookie client side.

Then if he makes a new request like ChangePassword (unique to him) should I somehow validate him again? Perhaps have created a token for him to send along his request?

Could I perhaps just do all the validation service side even so that the Service knows who the user is and returns only data related to him (without having to specifically mention him in the method call?

Does a service like this differentiate somehow between the authorization of the client web site and the user himself? I mean I want to ensure that both the tool being used is legal and that the action the user is trying to perform is ok.

I’m having a hard time understanding how all this works together and would rather have a explanation on how this works instead of a tutorial on how to do this(like a google search does).

  • 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-25T17:50:01+00:00Added an answer on May 25, 2026 at 5:50 pm

    “I’m having a hard time understanding how all this works together “

    That’s a pretty good summary of WCF. 🙂

    WCF will use membership/role providers for logins. They need to be configured in the serviceModel section of the config file.

    Your service’s users will use either the username/password properties of the proxy or they will have to generate the ws-security xml config themselves if not using a generated proxy.

    I’ve removed everything but the membership/roles stuff, so this isn’t (probably) a working config section.

     <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyCompany.Api.Services.WebService.MyProductServiceBehavior">
          <serviceCredentials>
            <userNameAuthentication
            userNamePasswordValidationMode="MembershipProvider"
            membershipProviderName="MyCompanyMembershipProvider" />
          </serviceCredentials>
          <serviceAuthorization principalPermissionMode='UseAspNetRoles' roleProviderName='MyCompanyRoleProvider' />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <basicHttpBinding>
        <binding name="MembershipBinding">
          <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="None" />
            <message clientCredentialType="UserName" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="MyCompany.Api.Services.WebService.MyProductServiceBehavior" name="MyCompany.Api.Services.WebService.MyProductService">
        <endpoint address="" binding="basicHttpBinding"  bindingConfiguration="MembershipBinding" contract="MyCompany.Api.Services.WebService.IMyProductService" />
      </service>
    </services>
    

    Here is an example of using the generated proxy:

            api = new MyProxyService.MyProxyServiceClient();
    
            api.ClientCredentials.UserName.UserName = userAcct;
            api.ClientCredentials.UserName.Password = password;
    
            api.MethodCall();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand a little more about memory management. Knowing that I
A little background I'm working on an .net application that's uses plugins heavily, the
I am interested in knowing a little more specifically about how Lucene queries are
Knowing an exception code, is there a way to find out more about what
Ok, have a bunch of questions that I have been thinking about the past
I am not that hot at regular expressions and it has made my little
I'm a little stumped with an issue that I think goes back to my
I have a little console application that has an embedded v8 engine, and I
I am learning how to work with FileUpload control in ASP.NET. I am a
I've a request to make some changes to a little applet that currently use

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.