SessionAuthenticationModule.ValidateSessionToken(SessionSecurityToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk