Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SessionAuthenticationModule::ValidateSessionToken Method (SessionSecurityToken^)

.NET Framework (current version)
 

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:
© 2017 Microsoft