Enables token replay detection and specifies the expiration time for tokens.



    <tokenReplayDetection enabled=xs:boolean expirationPeriod=TimeSpan>  



Attributes and Elements

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


Attribute Description
enabled A value that specifies whether token replay detection is enabled; "true" to enable token replay detection.
expirationPeriod A TimeSpan that specifies the maximum amount of time before an item is considered expired and removed from the cache. For more information about how to specify TimeSpan values, see Timespan Values.

Child Elements


Parent Elements

Element Description
<identityConfiguration> Specifies service-level identity settings.
<securityTokenHandlerConfiguration> Provides configuration for a collection of security token handlers.


A <tokenReplayDetection> 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 type of the token replay cache is specified by the <tokenReplayCache> element.