Search code examples
validationsecuritypasswordshandlerwif

Two Custom UserNameSecurityTokenHandlers


I have WIF STS with сustom UserNameSecurityTokenHandler. It works fine, UserNameSecurityToken passed to Validate method of UserNameSecurityTokenHandler. But I want use two different u\p validations on one STS. Is this possible?

For example we have user and workstation clients and want to validate these passwords by different rules.

There are no additional context found inside UserNameSecurityTokenHandler.


Solution

  • You can only register one token handler per token type.