Add and validate custom claims to Simple Web Tokens

Perform the following:

  1. Override the SWTFactory class and register it into the ObjectFactory.
    The following example demonstrates how to use the Global.asax file:
  2. Override the SWTSecurityTokenHandler in the following way:
  3. Register the handler in the web.config, in the following way:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?