1

我以前在我的 ACS 联合安全应用程序中使用过它:

        FederatedAuthentication.FederationConfigurationCreated +=
FederatedAuthentication_FederationConfigurationCreated;

在 global.asax.cs 文件中。出于某种原因,它在我当前的应用程序中为空,我不知道为什么。任何人都得到了一些关于可能导致这种情况的提示。

  <system.identityModel>
    <identityConfiguration>
      <audienceUris>
        <add value="site" />
      </audienceUris>
      <issuerNameRegistry type="System.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <trustedIssuers>
          <add name="https://s-innovations.accesscontrol.windows.net/" thumbprint="thmp" />
        </trustedIssuers>
      </issuerNameRegistry>
      <certificateValidation certificateValidationMode="None" />
      <securityTokenHandlers>
        <add type="System.IdentityModel.Services.Tokens.MachineKeySessionSecurityTokenHandler, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <remove type="System.IdentityModel.Tokens.SessionSecurityTokenHandler, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </securityTokenHandlers>
    </identityConfiguration>
  </system.identityModel>
  <system.identityModel.services>
    <federationConfiguration>
      <cookieHandler requireSsl="false" />      
      <wsFederation passiveRedirectEnabled="false" issuer="https://s-innovations.accesscontrol.windows.net/v2/wsfederation" realm="site" requireHttps="false" />
    </federationConfiguration>
  </system.identityModel.services>
4

0 回答 0