This topic has not yet been rated - Rate this topic

CommerceDataWarehouseAuthenticationModule Class

A DataWarehouse authentication http module provides the correlation mechanism to track ASP.NET site visitors to profile users. This class cannot be inherited.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
public sealed class CommerceDataWarehouseAuthenticationModule : CommerceModule

This class allows for analytics click-stream reports generation for the site. This class handles the PreRequestHandlerExecute event. This method obtains the username from the CommerceContext.Current.UserId and creates an encrypted Ticket string. When the event is fired, the following logic is applied:

  • If the user is authenticated (The UserID is not nullNothingnullptra null reference (Nothing in Visual Basic)) the User’s encrypted Ticket string is logged in the IIS logs as the "MSCSAuth" ticket for the user, and no cookie is created.

  • If the user is not authenticated (The UserID is nullNothingnullptra null reference (Nothing in Visual Basic)) a MSCSProfile session cookie is created with a random GUID, and a cookie is logged to the IIS log.

If the Commerce Server Authentication (AuthManager) is being used, then the Data Warehouse Authentication Module should not be listed in the httpModules section of web.config). For further information on ASP.NET authentication, see UserID.

System..::.Object
  Microsoft.CommerceServer.Runtime..::.CommerceModule
    Microsoft.CommerceServer.Runtime..::.CommerceDataWarehouseAuthenticationModule
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)