How we could authenticate/authorize WCF RESTful service (that uses webHttpBinding (and not wsHttpBinding, like in SOAP case))?
I.e. we want to use Membership/Roles to permit (or prohibit) user consume each web method according his role.
Thanks in advance.
Ilan.
You can use certificates to secure the service or send the username and password in the header. You can then add a behavior by implementing
IAuthorizationPolicyto the service so that you don’t have to implement the security check in every web service method that you expose.In web.config you tell the service to use the authorization policy
Another option is to setup SSL on the IIS Server so that it requires SSL and client certificate to connect to any page.