views:

61

answers:

1

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:

  1. 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
  2. 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
Thank you very much
mehrdad
but do you have any sample projects or any suggestion for this?
mehrdad