【发布时间】:2013-04-23 08:02:59
【问题描述】:
在查看有关身份和访问控制的 PluralSite 视频后,基本上设置了我需要的所有内容(我的机器上有一个正在运行的 Thinktecture Identity Server 本地实例,以及 Identity and Access vs2012 扩展),我无法在同一个解决方案中使用两个 Web 应用程序来针对 Identity Server 进行身份验证。
目前,他们都要求我登录 id 服务器,这不是我想要的,我希望能够登录到 id 服务器一次,并为两个站点进行身份验证。
以下是 web.config 中我认为应该如何进行的部分:
“领域”的作用究竟是什么?这需要是一个真实的 URL,还是可以像命名空间一样对待?当尝试跨多个站点使用由 Id 服务器颁发的相同安全令牌时,我的映像领域必须发挥作用。
<system.identityModel.services>
<federationConfiguration>
<cookieHandler requireSsl="false" />
<wsFederation passiveRedirectEnabled="true" issuer="https://MyIdServer.com/idsvr/issue/wsfed" realm="http://MyLocalServerRunningIISExpress:55495/" reply="http://MyLocalServerRunningIISExpress:55495/" requireHttps="false" />
</federationConfiguration>
</system.identityModel.services>
audienceUris 是如何工作的?我假设如果我想跨多个站点使用一个安全令牌,我需要在 AudienceUris 部分中表示每个站点的 URL?
<system.identityModel>
<identityConfiguration>
<claimsAuthenticationManager type="SSO.Security.ClaimsAuthenticationManager, SSO.Security" />
<audienceUris>
<add value="http://MyLocalServerRunningIISExpress:55495/" />
<add value="http://MyLocalServerRunningIISExpress:53133/" />
</audienceUris>
</identityConfiguration>
</system.identityModel>
第二个站点的另一个 web.config 文件与上面的部分一样,但 URL 上的端口号已更改。
再一次,我确实让 Id Srv 将一个令牌传回给我,该令牌对我的 ONE 站点进行身份验证,但我一辈子都无法让它为两个站点工作。
我猜这是一个配置问题,或者可能是因为我在两个端口号上运行了两个 IIS Express 实例,而不是使用真正的 IIS 服务器并使用 URL?
【问题讨论】:
标签: single-sign-on wif thinktecture-ident-server