Export (0) Print
Expand All

SessionAuthenticationModule.ValidateSessionToken Method

.NET Framework 4.5

Validates the specified SessionSecurityToken and returns its identities.

Namespace:  System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

protected ReadOnlyCollection<ClaimsIdentity> ValidateSessionToken(
	SessionSecurityToken sessionSecurityToken


Type: System.IdentityModel.Tokens.SessionSecurityToken

The token to validate.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ClaimsIdentity>
The collection of identities that are contained in the token.


The token has expired.


The token start time is not yet valid.


There is not a valid session token handler configured. (There is no SessionSecurityTokenHandler configured in the SecurityTokenHandlers property.)

This method is called from the AuthenticateSessionSecurityToken method. It invokes the SessionSecurityTokenHandler.ValidateToken method of the configured session token handler to validate the token and extract its identities.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft