WCF(HTTPS,UserName) calling by SilverLight
- by Andrew Kalashnikov
Hello colleagues. I've created wcf service with transport security over HTTPS. Also I use UserName authentication as described at http://msdn.microsoft.com/en-us/library/cc949025.aspx, so I can use my Membership,RoleProvider. When I work with this service with ASP.NET all is OK
var client = new RegistratorClient();
client.ClientCredentials.UserName.UserName = ConfigurationManager.AppSettings["registratorLogin"];
client.ClientCredentials.UserName.Password = ConfigurationManager.AppSettings["registratorPassword"];
But at my SilverLight appliation I can't do the same. When I try setup credntials and call wcf I get standard browser window with username and password. When I insert it SL application works well, but this message is so annoyed. I can't use clientCredentialType="Basic" at my SL config.
What should I do for silence calling my WCF.
Big thanks