<caches>

.NET Framework 4.5

Registers the caches used for session tokens and token replay detection.

<system.identityModel>
  <identityConfiguration>
    <caches>
<system.identityModel>
  <identityConfiguration>
    <caches>
    </caches>
  </identityConfiguration>
</system.identityModel>

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

Attributes

None

Child Elements

Element

Description

<sessionSecurityTokenCache>

Registers a cache for session tokens with a service or a security token handler collection.

<tokenReplayCache>

Registers a token replay cache with a service or a security token handler collection.

Parent Elements

Element

Description

<identityConfiguration>

Specifies service-level identity settings.

<securityTokenHandlerConfiguration>

Provides configuration for a collection of security token handlers.

A <caches> element can be specified at the service level under the <identityConfiguration> element or on the security token handler collection level under the <securityTokenHandlerConfiguration> element. Settings on a token handler collection override those specified on the service.

The <caches> element is represented by the IdentityModelCachesElement class. The configured caches are represented by the IdentityModelCaches class.

The following XML shows the configuration of a custom cache for holding session security tokens (SessionSecurityToken). The configuration is taken from the ClaimsAwareWebFarm sample.

      <caches>
        <sessionSecurityTokenCache type="CacheLibrary.SharedSessionSecurityTokenCache, CacheLibrary">
          <!--cacheServiceAddress points to the centralized session security token cache service running in the web farm.-->
          <cacheServiceAddress url="http://localhost:4161/SessionSecurityTokenCacheService.svc" />
        </sessionSecurityTokenCache>
      </caches>
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft