0

次のクレームに基づいて SWT トークンを作成したいと思います。

IClaimsPrincipal principal = (IClaimsPrincipal)User;
IClaimsIdentity identity = (IClaimsIdentity)principal.Identity;

swt トークンを検証するためのコードは見つかりましたが、IClaimsIdentity クレームから swt トークンを作成するサンプルは見つかりませんでした。

4

1 に答える 1

1

私のブログをチェックしてください... http://lbadri.wordpress.com/2012/07/30/anatomy-of-a-simple-web-token-swt/

于 2012-10-07T07:38:00.560 に答える