I would like to create a SWT token based on the claims in:
IClaimsPrincipal principal = (IClaimsPrincipal)User;
IClaimsIdentity identity = (IClaimsIdentity)principal.Identity;
I have found code for validating a swt token, but haven't been able to find a sample that creates one from IClaimsIdentity claims.