I have a MVC website that sits on top of a WCF service. The WCF service is also accessible to the internet with username/password authentication using message security and certificates. This is setup and working.
Both the website and the service use the same membership store, using the membership API.
A user can log onto either the website or the service using the same credentials. However, when the website calls the service, it needs to pass the credentials of the currently logged on user. I can get the username from
Membership.GetUser().UserName
but I can't get the password!
Is there another way to essentially pass the website user credentials to the service?
Any help much appreciated...