Azure WCF Web role over http with wshttpbinding and custom UserNamePasswordValidator – step by step guide
Today I 07ied to host WCF service using Azure web role with wshttpbinding and custom username and password validator and access it over http. Wshttpbinding is based on ws- security and it is good option to provide authentication mechanism to WCF service hosted on Azure. Let’s start it right away. Add Custom username and password validator - First of all create an Azure cloud service project with one web role and WCF web role. Then add reference to System.IdentityModel to WCF project so that we can use our own custom username and password validator based on UserNamePasswordValidator class. Create a class as shown below in WCF web role project – /// <summary> /// Validator class to be used for WCF authentication in case of wsHttpbinding only /// </summary> public class Service1UserNameValidator : UserNamePasswordValidator { public override void Validate( s07ing ...