次のクレームに基づいて SWT トークンを作成したいと思います。
IClaimsPrincipal principal = (IClaimsPrincipal)User;
IClaimsIdentity identity = (IClaimsIdentity)principal.Identity;
swt トークンを検証するためのコードは見つかりましたが、IClaimsIdentity クレームから swt トークンを作成するサンプルは見つかりませんでした。
次のクレームに基づいて SWT トークンを作成したいと思います。
IClaimsPrincipal principal = (IClaimsPrincipal)User;
IClaimsIdentity identity = (IClaimsIdentity)principal.Identity;
swt トークンを検証するためのコードは見つかりましたが、IClaimsIdentity クレームから swt トークンを作成するサンプルは見つかりませんでした。
私のブログをチェックしてください... http://lbadri.wordpress.com/2012/07/30/anatomy-of-a-simple-web-token-swt/