title: Authentication and Authorization of an MVC client application throgh WCF service?
body: <p>First of all, I'm sorry if this question was already asked before. I've searched for a long time and there are many questions related to this but I can't get my head around this.</p>
  <p>I have to build an application using WCF service and ASP.NET MVC. I worked with MVC before but I'm completely new to the WCF service. The architecture of the application is I'm accessing the database from WCF service and writing all the code in WCF. And MVC is acting as a Client and I'm just adding a service reference in the MVC to consume the service and making calls to WCF for every action.</p>
  <p><strong>Now my question is how will I implement authentication and authorization with this architecture. I just want to have register, login functionlity and also some roles. Like how we use ASP.NET membership to implement register, login functions and manage roles when working with MVC, Is there anything like that in WCF? Is there anyway that I can use the membership directly from MVC client without connecting db in client, like making some changes in the configuration so that we can connect to DB through WCF?</strong></p>
  <p><strong>From what I've read so far, I can use ASP.net membership but I need to make some changes in the configuration. And no matter how many articles I read, I'm still confused on how to do this.</strong></p>
  <p>Can anyone explain me in detail, what changes should I do in client and service configurations to make this work? Or point me to a guide that explains this? I'm trying to uderstand this from a week now and every article I read, mentions to change web.config code, but they never mention whether it's client's web.config file or web.config file in service.</p>
  <p><em>P.s: I'm sorry for any mistakes in the framing of the question or the title. I hope I'm clear in asking my question, if not please let me allow to explain clearly. This is my first question here and Thanks in advance.</em></p>