WCF REST Authentication behavior
问题 I want to be able to authenticate a WCF Rest webservice but I'm not really sure how to go about it. It looks like many of the other questions relate to stuff in .net 3.5 WCF (such as WebServiceHost2) which no longer seems to exist. I am wanting to do message based authentication on the WCF service with custom usernames and passwords. From what I can tell this can be done by the following in regular WCF: <behaviors> <serviceBehaviors> <behavior name="PasswordValidator"> <serviceCredentials>