SessionAuthenticationModule::ValidateSessionToken Method (SessionSecurityToken^)
.NET Framework (current version)
Validates the specified SessionSecurityToken and returns its identities.
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
Available since 4.5
Show: