Example Code for Site Security Objects
This section provides detailed examples of how to use the objects supplied by Commerce Server 2000 for site security. These samples are written in Microsoft Visual Basic Scripting Edition (VBScript) for Active Server Pages (ASP), and do not show error checking or certain other formalities required for functional code.
This section contains:
Code to Control Display of a Business Desk Module. Describes how to control whether a specified Business Desk module is displayed to the current user.
Code to Create and Initialize AuthManager. Describes how to instantiate and initialize the AuthManager object.
Code to Manipulate Site Configuration Properties. Describes how to change CS Authentication resource properties.
Code to Retrieve Login Credentials. Describes how to retrieve the user ID and password submitted on an HTML form using either the Get method or the Post method.
Code to Set a New MSCSProfile Ticket. Describes how to create an MSCSProfile ticket.
Code to Retrieve a Profile and Set an MSCSAuth Ticket. Describes how to retrieve a profile using the Commerce Server Profiles resource, and set an MSCSAuth ticket.
Code to Retrieve Login Credentials Using the Post Method and Set an MSCSAuth Ticket. Describes how to retrieve the user ID and password submitted on a HTML form using the Post method, get the profile corresponding to the user ID using the Commerce Server Profiles resource, set the user ID in an MSCSAuth ticket, and redirect the user to the originally requested URL.
Code to Set a Custom Property on a Ticket. Describes how to create a globally unique identifier (GUID) string and place it on an MSCSAuth ticket as a guid property.
Code to Generate an Encoded URL String. Describes how to generate an encoded URL string from a file name.