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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om