使用会话身份验证模块(SAM)时如何更新声明 [英] How to update a claim when using Session Authentication Module (SAM)
本文介绍了使用会话身份验证模块(SAM)时如何更新声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用会话身份验证模块将用户声明存储在身份验证cookie中。
I'm using the Session Authentication Module to store the user claims in the authentication cookie.
在记录用户声明时更新用户声明的推荐方法是什么?在?例如,如果他们更新了个人资料(名字/姓氏),而我们想更新相关的声明。
What is the recommended approach to update the user's claims whilst they are logged in? An example would be if they update their profile (First Name/Last Name) and we want to update the associated claims.
我不想注销用户如果发生这种情况,则 DeleteSessionTokenCookie
不能选择。
I don't want to log the user out when this happens so DeleteSessionTokenCookie
is not an option.
推荐答案
设置一个SAM.WriteSessionTokenToCookie创建新的会话cookie。
Set a new session cookie with SAM.WriteSessionTokenToCookie.
这篇关于使用会话身份验证模块(SAM)时如何更新声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文