我有两个应用程序"http:/localhost/applicationA"
和"http:/localhost/applicationB"
. 我已经为基于声明的身份验证设置配置了 applicationA。applicationA 运行良好。但我从 applicationA 引用了一些 applicationB 的 javascrips。但是 applicationB 没有身份验证 cookies( FedAuth
)。
我是否可以使用以下代码在 applicationA、applicationB 中添加声明身份验证?
<system.identityModel>
<identityConfiguration>
<audienceUris>
<add value="http://localhost/applicationB/" />
<add value="http://localhost/applicationA/" />
</audienceUris>
<issuerNameRegistry type="System.IdentityModel.Tokens.ValidatingIssuerNameRegistry, System.IdentityModel.Tokens.ValidatingIssuerNameRegistry">
<authority name="PassiveSigninSTS">
<keys>
<add thumbprint="DE161DD37B2FEC37BDB17CAFF33D982DCE47E740" />
</keys>
<validIssuers>
<add name="PassiveSigninSTS" />
</validIssuers>
</authority>
</issuerNameRegistry>
<!--certificationValidationMode set to "None" by the the Identity and Access Tool for Visual Studio. For development purposes.-->
<certificateValidation certificateValidationMode="None" />
</identityConfiguration>