SessionAuthenticationModule.ValidateSessionToken Method (SessionSecurityToken)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
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
Available since 4.5
Return to top
Show: