Share via


<claimsAuthenticationManager>

Registers a claims authentication manager for the incoming claims.

<configuration>
  <system.identityModel>
    <identityConfiguration>
      <claimsAuthenticationManager>

Syntax

<system.identityModel>  
  <identityConfiguration>  
    <claimsAuthenticationManager type=xs:string>  
      <optionalConfigurationElements />  
    </claimsAuthenticationManager>  
  </identityConfiguration>  
</system.identityModel>  

Attributes and Elements

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

Attributes

Attribute Description
type Specifies a custom type that derives from the ClaimsAuthenticationManager class. For more information about how to specify the type attribute, see [Custom Type References].

Child Elements

If there is no type attribute, or if the type attribute references the ClaimsAuthenticationManager class, the <claimsAuthenticationManager> element does not take child elements; however, classes derived from ClaimsAuthenticationManager can define child configuration elements.

Parent Elements

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

Remarks

The default behavior provided through the ClaimsAuthenticationManager class echoes the incoming claims. If no type attribute is specified or if the type attribute specifies the ClaimsAuthenticationManager class, the <claimsAuthenticationManager> element does not take child elements. You can specify the type attribute to register a type derived from the ClaimsAuthenticationManager class to implement custom behavior. Derived classes can support configuration through child elements of the <claimsAuthenticationManager> element by overriding the LoadCustomConfiguration method to handle these elements. The schema defined for the child elements is up to the designer of the class.

The <claimsAuthenticationManager> element sets the IdentityConfiguration.ClaimsAuthenticationManager property.

Example

<system.identityModel>  
    <identityConfiguration name="MyIdentity">  
      <claimsAuthenticationManager type="MyNamespace.CustomClaimsAuthenticationManager, MyAssembly"/>
    </identityConfiguration>  
</system.identityModel>