Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从 windows live 中提取 nameidentifier 声明。我搜索了代码,大部分地方,我发现使用 Azure 访问控制服务。我不想使用 Azure ACS。是否可以仅使用 C#、asp.net 来实现这一点?
您能否从 Live ID 取回 SAML 令牌?如果是这样,则应在 saml:Subject 中找到 NameIdentifier。
如果您的网站正在使用 WIF,那么在成功验证后,您应该已经在 IClaimsPrincipal 对象中找到了这个 nameidentifier 声明。(例如 HttpContext.Current.User)