Επεξεργασία

Κοινή χρήση μέσω


SessionAuthenticationModule.SetPrincipalFromSessionToken Method

Definition

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.

Applies to