I know for WCF to work with a membership provider you have to explicitly configure it: (e.g. http://www.codewrecks.com/blog/index.php/2009/09/08/use-aspnet-membership-provider-with-a-wcf-svc-service/)
But if you already have the ASP.NET site using it, can't you prevent anonymous access to the service simply by doing the following?
<location path="PathToWCFService">
<system.web>
<authorization>
<deny users"?" />
<allow users="*" />
</authorization>
</system.web>
</location>
Assuming this works, then I would guess WCF wouldn't have access to the membership information? Any other reasons why this might be a bad idea? Thanks!
Edit: Any other way to use WCF with the membership provider that doesn't require maintaining a certificate?