Compartir a través de


<system.identityModel>

Provides configuration for enabling Windows Identity Foundation (WIF) options in applications.

<configuration>
  <system.identityModel>

Syntax

<system.identityModel>  
</system.identityModel>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child Elements

Element Description
<identityConfiguration> Specifies service-level identity settings.

Parent Elements

Element Description
<configuration> The root element in every configuration file used by the common language runtime and .NET Framework applications.

Remarks

Add a <system.identityModel> section to the configuration file to configure a service or application to use Windows Identity Foundation (WIF). The <system.identityModel> element is represented by the SystemIdentityModelSection class.

Example

The following example shows how to add a <system.identityModel> section to a configuration file. You must first add the configuration section and namespace declaration under the <configSections> element. Then you can add the <system.IdentityModel> element to your configuration file to specify one or more identity configurations.

<configuration>  
  <configSections>  
    <!--WIF 4.5 sections -->  
    <section name="system.identityModel" type="System.IdentityModel.Configuration.SystemIdentityModelSection, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
    <section name="system.identityModel.services" type="System.IdentityModel.Services.Configuration.SystemIdentityModelServicesSection, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
  </configSections>  
  
  ...  
  
  <system.identityModel>  
    <identityConfiguration>  
      <audienceUris>  
        <add value="http://localhost/WebApplication1/" />  
      </audienceUris>  
      <issuerNameRegistry type="System.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">  
        <trustedIssuers>  
          <add thumbprint="313D3B … 9106A9EC" name="SelfSTS" />  
        </trustedIssuers>  
      </issuerNameRegistry>  
      <certificateValidation certificateValidationMode="None"/>  
    </identityConfiguration>  
  </system.identityModel>  
  
  ...  
  
</configuration>  

See also