I have a WCF application which I'd like to expose to some people, but for them to use the service I'd like to authenticate them somehow, is it possible to create my own membership provider which would check if the user is validated by calling the ValidateUser
method? Also how would I then tell my bindings/behaviours to use this Membership Provider?
Edit
I have some queries about this too. For example: If I call a method on my webservice called QueryStock
from my client. Does it first validate the user using my membership provider BEFORE firing the method or do I have to put pass the username and password as parameters and then do Membership.ValidateUser(username, password)
before executing the code in my method?