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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για