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:

Was this article helpful?