WCF Authentication using basicHttpBinding and custom UserNamePasswordValidator -
my first question is, possible use custom usernamepasswordvalidor basichttpbinding?
i have asp.net web site using forms authentication , custom membership provider. realise use built in system.web.applicationservices.authenticationservice authenticate client (a wpf app) don't want 2 service calls (one auth service, 1 logic).
so seems custom usernamepasswordvalidator perfect job. in client can have:
var service = new myserviceclient(); service.clientcredentials.username.username = "username"; service.clientcredentials.username.password = "password"; messagebox.show(service.sayhello());
i've seen working wshttpbinding ideally test without ssl certificate.
alternatively, possible make use of authenticationservice within wcf service?
to clarify mean above regarding authentication service, don't want have 2 service calls i.e:
if (authservice.login("username", "password")) // call service
i know minor thing external developer of client app expecting 1 service takes credentials , returns required data.
thanks, ben
check clearusername binding: http://webservices20.blogspot.com/2008/11/introducing-wcf-clearusernamebinding.html should solve problem.
Comments
Post a Comment