WCF Message Security implementation with custom attributes
How can i implement message security in WCF with custom attributes,
One way of doing this by UserNamePasswordValidator which accepts user name and password but in my case I have to pass 2 more attribute that is company and region to authentic开发者_开发技巧ate the user.
Please suggest the solution for achieving this.
Stop re-inventing the wheel! This has already been done - see:
Foundations: Declarative WCF Security
Excellent article, comes with full source code for you to use and adapt (if needed).
精彩评论