Muokkaa

Jaa


SessionAuthenticationModule.ValidateSessionToken(SessionSecurityToken) Method

Definition

Validates the specified SessionSecurityToken and returns its identities.

protected:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Security::Claims::ClaimsIdentity ^> ^ ValidateSessionToken(System::IdentityModel::Tokens::SessionSecurityToken ^ sessionSecurityToken);
protected System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity> ValidateSessionToken (System.IdentityModel.Tokens.SessionSecurityToken sessionSecurityToken);
member this.ValidateSessionToken : System.IdentityModel.Tokens.SessionSecurityToken -> System.Collections.ObjectModel.ReadOnlyCollection<System.Security.Claims.ClaimsIdentity>
Protected Function ValidateSessionToken (sessionSecurityToken As SessionSecurityToken) As ReadOnlyCollection(Of ClaimsIdentity)

Parameters

sessionSecurityToken
SessionSecurityToken

The token to validate.

Returns

The collection of identities that are contained in the token.

Exceptions

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.)

Remarks

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.

Applies to