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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -