SetPrincipalFromSessionToken Method

SessionAuthenticationModule.SetPrincipalFromSessionToken Method (SessionSecurityToken)

.NET Framework (current version)
 

Sets the principal on the HttpContext and Thread to the principal that is contained in the specified session token.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

protected virtual void SetPrincipalFromSessionToken(
	SessionSecurityToken sessionSecurityToken
)

Parameters

sessionSecurityToken
Type: System.IdentityModel.Tokens.SessionSecurityToken

The session token from which to set the principal.

Invokes the ValidateSessionToken method and sets the Thread.CurrentPrincipal property and the HttpContext.User property on HttpContext.Current using the identities that are returned.

This method is called from the AuthenticateSessionSecurityToken method.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft