Accessing AdditionalContext of RequestSecurityToken from inside UserNameSecurityTokenHandler

丶灬走出姿态 提交于 2019-12-12 01:45:38

问题


I am creating a custom STS using a custom UserNameSecurityTokenHandler derived class. In the client, I am adding some additional information to the AdditionalContext property of the RequestSecurityToken that the Token Handler needs to fully authenticate (in addition to User Name & Password).

I assume that the RequestSecurityToken must be available to me somewhere in my Token Handler, but I cannot locate it. I've prowled through the code with Reflector, but that has not helped either.

How can I get at this information?

Thanks in advance.

David Mullin


回答1:


It turns out that I was confusing two unrelated things. The UserNameSecurityTokenHandler class is for authenticating the UserName/Password Client Credentials, which then flows into the STS as the "Current Principal".

So, never mind.



来源:https://stackoverflow.com/questions/14782963/accessing-additionalcontext-of-requestsecuritytoken-from-inside-usernamesecurity

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!