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.
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