SessionAuthenticationModule Methods

Windows Identity Foundation
[Starting with the .NET Framework 4.5, Windows Identity Foundation (WIF) has been fully integrated into the .NET Framework. The version of WIF addressed by this topic, WIF 3.5, is deprecated and should only be used when developing against the .NET Framework 3.5 SP1 or the .NET Framework 4. For more information about WIF in the .NET Framework 4.5, also known as WIF 4.5, see the Windows Identity Foundation documentation in the .NET Framework 4.5 Development Guide.]

(see also Protected Methods)
public methodAuthenticateSessionSecurityTokenAuthenticates the incoming request by updating the current HTTP context and thread principal with the provided SessionSecurityToken.
public methodContainsSessionTokenCookieDetermines if a session cookie is in the provided cookie collection.
public methodCreateSessionSecurityTokenCreates a SessionSecurityToken using the configured handler.
public methodDeleteSessionTokenCookieDeletes any session cookies.
public methodDispose  Disposes of the resources used by the module. (Inherited from HttpModuleBase)
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodInit  Initializes the module. (Inherited from HttpModuleBase)
public methodReadSessionTokenFromCookieReads a SessionSecurityToken from a session cookie.
public methodSignOutSign out the current user and fire the associated events.
public methodToString  (Inherited from Object)
public methodTryReadSessionTokenFromCookieReads a SessionSecurityToken from a session cookie and returns a value that indicates whether the session cookie was read.
public methodWriteSessionTokenToCookieWrites a SessionSecurityToken to a session cookie.

protected methodFinalize  (Inherited from Object)
protected methodInitializeModuleOverridden. Initializes the module and prepares it to handle events from the module's ASP.NET application object.
protected methodInitializePropertiesFromConfigurationInitialize module properties based on definitions in the configuration file.
protected methodMemberwiseClone  (Inherited from Object)
protected methodOnAuthenticateRequestHandles AuthenticateRequest event from the ASP.NET pipeline. Checks if a cookie is present and reads the cookie as a SessionSecurityToken. Raises the OnSessionSecurityTokenReceived event. Sets the Thread.CurrentPrincipal to ClaimsPrincipal. Raises the OnSignInError event when the SessionSecurityToken fails validation.
protected methodOnPostAuthenticateRequestEvent handler for Application.PostAuthenticateRequest
protected methodOnSessionSecurityTokenCreatedRaise the SessionSecurityTokenCreated event.
protected methodOnSessionSecurityTokenReceivedRaise the SessionSecurityTokenReceived event.
protected methodOnSignedOutRaise the SignedOut event.
protected methodOnSigningOutRaise the SigningOut event.
protected methodOnSignOutErrorRaise the SignOutError event.
protected methodSetPrincipalFromSessionTokenSets the principals on the HttpContext and Thread to that of the provided session token.
protected methodValidateSessionTokenEnsures that the SessionSecurityToken is valid.

Copyright © 2008 by Microsoft Corporation. All rights reserved.

Community Additions