I have one solution and it is made of two kind of project one is asp.net and it's using .net membership for authenticate the users another project is WCF REST (Odata) , how I can authenticate the user in wcf project?
+1
A:
You have two options:
- The easiest way would be to move the WCF OData service into the ASP.NET project and follow the directions outlined in this post which talks about Forms Authentication in OData
- Alternatively you could add a custom basic authentication module to your OData site that uses the same .NET membership subsystem to check users/passwords etc.
Either way you should check out the full series of Authentication Blog posts on the Astoria Team blog.
Hope this helps
Alex (OData Program Manager)
Alex James
2010-09-20 17:22:22
Thank you very much
mehrdad
2010-09-20 21:14:25
but do you have any sample projects or any suggestion for this?
mehrdad
2010-09-21 07:08:21