Using the .NET Membership Provider in an n-level Web Application

I am currently creating an n-tier web application, mainly for working with new technologies and patterns - repositories, uow, services, ioc, ef4 and mvc3.

After a lot of hair pulling, I now have ef4 saving my objects through my service level using repositories.

Now I'm starting to define the methods that I need at the service level, and now I think it's time to start implementing authentication. As a rule, I refused my own authentication code, but a friend told me to ask for a membership provider.

Now, obviously, I'm going to use this in the mvc3 web application, but I wonder if I can use it in my service too? Can someone point me to any articles or blog posts?

NB. I apologize if I state the obvious, but I just wanted to be clear that when I talk about my level of service, I don't mean WCF; these are my own classes that respect the service layer template - http://martinfowler.com/eaaCatalog/serviceLayer.html . Having said that, I might want to expose this level of service through WCF services later.

I’ve been on the Internet for a couple of hours now and haven’t come up with anything!

Any help really appreciated.

+3
source share
2 answers

18 .

, , asp.net. .

, EF4 -

, !

+1

- "SecurityContext", , IP- .. , - WCF. Agent . SecurityContext , . , , .. /-.

+1

Source: https://habr.com/ru/post/1787137/


All Articles