SessionAuthenticationModule.SetPrincipalFromSessionToken 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.
Sets the principal on the HttpContext and Thread to the principal that is contained in the specified session token.
protected:
virtual void SetPrincipalFromSessionToken(System::IdentityModel::Tokens::SessionSecurityToken ^ sessionSecurityToken);
protected virtual void SetPrincipalFromSessionToken (System.IdentityModel.Tokens.SessionSecurityToken sessionSecurityToken);
abstract member SetPrincipalFromSessionToken : System.IdentityModel.Tokens.SessionSecurityToken -> unit
override this.SetPrincipalFromSessionToken : System.IdentityModel.Tokens.SessionSecurityToken -> unit
Protected Overridable Sub SetPrincipalFromSessionToken (sessionSecurityToken As SessionSecurityToken)
Parameters
- sessionSecurityToken
- SessionSecurityToken
The session token from which to set the principal.
Remarks
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.