Every example I see uses the default Membership Provider with the userNamePasswordValidationMode, but can I specify MembershipProvider for userNamePasswordValidationMode in the ServiceCredentials for a WCF REST Service if I have a Custom Membership Provider? Is the following route the best to take if this is possible:
Create a custom membership provider that implements Membership Provider.
Create a CustomUserNamePasswordValidator that implements UserNamePasswordValidator and override the Validate Method.
In the Validate method, validate whether a user exists in the database.
Issues I am having are, if I have a login method in my service and it is called from an a web browser with the url http://test.com/service.svc/login, how can I get the username and password. Assume that it the username and password can be typed into a web page or it can come from a smart device application (android, iphone, etc)