Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ValidateSessionToken Method

SessionAuthenticationModule.ValidateSessionToken Method

.NET Framework 4.6 and 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
)

Parameters

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.

ExceptionCondition
FederatedSessionExpiredException

The token has expired.

FederationException

The token start time is not yet valid.

InvalidOperationException

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.6, 4.5
Show:
© 2015 Microsoft