Is there a WCF extension point that is called before UserNamePasswordValidator?

I need to run something before UserNamePasswordValidator.Validate(username, password) is called for every WCF request.

I already tried using IDispatchMessageInspector , but the inspector is called after UserNamePasswordValidator.Validate .

Is there a WCF extension point that is called before UserNamePasswordValidator ?

+5
source share
1 answer

Once I came across a similar situation. What I ended up with is implementing a custom username / password verification class. I ran the code that I had, and then performed a validation of the username and password.

 public override void Validate(string userName, string password) { // your custom code here... // then... base.Validate(userName, password); } 

According to what you describe, getting the configuration values ​​for each request can very well be done that way.

Check out this MSDN page to learn how to implement a custom user identity / password.

0
source

All Articles