开发者

WCF custom UserNameValidator - When and where in the channel mode is this added?

I need to acces开发者_StackOverflow中文版s the EndPoint on a service before UserNamePassword valdiation is done. I am having a custom usernamepasswordvalidator. Before this authentication i need to access the endpoint. I tried implementing messageinspector,iservicehbevaior etc but all of them seems to be hit only after UserNamePassword validation. Is there any extensibility point before UserNamePassword validation that would allow me to access the EndPoint?


What kind of processing do you want to do before UserNamePassword validation is done?

A few things I can think of:

  • Create a custom channel, and then a custom binding that injects this channel between the transport and the security channels
  • Create a custom encoder that wraps the built-in (text, binary, etc.) encoder that you're using
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜