Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Pass Asp.net Membership Provider to web server through WCF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zheng Chen - 03 Dec 2007 05:38 GMT
I have an aspnetdb database sitting in different domain with the web server.
To authenticate a user and populate membership provider, WCF is used.
However, I have no idea how to pass the membership provider back to web
server. Therefore, I can not use the role feature in the web.sitemap. All the
sample code I found uses the membership provider at server site on the same
domain with the aspnetdb. No sample solution passes the membership provider
through the WCF back to the web server (Client Site). Can anyone help on
this? My boss may consider pay for it if it helps.

Thanks in advance!

Zheng
sloan - 03 Dec 2007 14:32 GMT
Take this with a grain of salt...but I think.........

You may have to write your own Custom Membership Provider ...... which can
simply be a wrapper ( Adapter Design Pattern ) for the
SqlMembershipProvider.

You'll need a "local" version..... which passes calls thru to WCF.

Then you'll need the ServiceLayer.<<I do this just to keep a clean
implementation

Then you'll need the server side code...with is the actual wrapper for the
SqlMembershipProvider.

..........

I think the trick is that you have to write a service contract...
IMyService....which implements MembershipProvider (or one of the higher
interfaces for this class).

Take a look at this example
http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!158.entry

ZebraControllerServiceWrapper
ZebraControllerFascade
ZebraController

one of the things you'll notice is that all of these implement
IZebraController

to get to your situation.... I ~think~

IZebraController : MembershipProvider

But wait..MembershipProvider is an abstract class...so I don't even think
that will work.

Maybe IZebraController can implement MembershipBase (?? going from memory
here)...or something like that.

Its an interesting problem.

Do a followup and see if that gets you anywhere, or if you hit a roadblock.

>I have an aspnetdb database sitting in different domain with the web
>server.
[quoted text clipped - 12 lines]
>
> Zheng

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.