Im building a WebAPI for an old legacy VB.NET based webforms app which uses ASP.NET Membership and Forms Authentication. I need to be able to access the Membership object easily in each request.
In my API, I have managed to get this working by basically passing the aspx AUTH cookie on each request which requires authentication and I can use the [Authorise] tag to protect the service. This works pretty well but I am concerned about the security of this.
I have seen a few posts about coupling this or replacing it with basic auth, but I dont see how I would get hold of my membership objects if I went down this route?
It would be great to know how people have achieved using ASP.NET Membership and WebAPI!