Previous Topic: Programming Examples

Next Topic: .NET SDK Release Notes


.NET SDK Sample Application

The .NET test application generates an open format cookie and consumes it using the.NET SDK. The test application can be deployed in a number of ways. One suggested approach is listed following.

Note: Make sure the IIS Web Server is set to allow ASP .NET content.

To deploy the .NET SDK test application

  1. Create a folder (in this example, TestApplication).
  2. Copy the following files from the dotNet_SDK_home\testapp to your TestApplication folder:
  3. Create a bin folder in the TestApplication directory.
  4. Copy CA.Federation.FedIdentitySdk.dll from dotNet_SDK_home\bin to your TestApplication\bin.
  5. Open the web.config file to edit. In the <appSettings> section, change the Password, Zone, and Name keys.
  6. Go to the Internet Information Services Manager.
  7. Right click websites.
  8. Enter a description for the Web site.
  9. Assign a TCP port to the Web site (for example, 100).
  10. Enter or browse the path to the Web site home directory, that is, the location of the Test Application directory.
  11. On the Website Access Permissions dialog, select the Read and Run scripts (such as ASP) options.
  12. Select Finish.
  13. Restart IIS.
  14. Access the .NET SDK Test Application open format cookie creation page.
  15. Enter the login ID.
  16. Click Go.

    The system displays the .NET SDK Test Application Open Format Cookie consumption page. The OpenCookieConsumer.aspx page displays the contents of the cookie. In this case, the only attribute in the cookie is Login ID.

  17. Access the .NET SDK Test Application Open Format Cookie consumption page, which decrypts the open format cookie and display the principal and assertion attributes contained in the cookie.