Sample code installation - nordvall/WifExamples GitHub Wiki

The sample projects contains:

  • A web site with two pages
    • Default.aspx - Open for all authenicated users. Displays all claims received from the STS.
    • Managers.aspx - Restricted to users in the "Manager" role
  • A web service with two methods
    • WhoAmI() - Open for all authenicated users. Returns the user's name, as provided by the STS.
    • RestrictedMethod() - restricted to users in the "Manager" role

System requirements

  • Visual Studio 2010 or 2012
  • IIS Express (for HTTPS support)

Installation

Here are instructions for configuring the sample code in your own environment:

  • Download and extract the sample code from this repository.
  • Run install.bat from the Certificates folder. The script will install the necessary test certificates on your computer.
  • There are multiple Visual Studio solutions available. Open the one that matches the .NET version you are working with, for example /NET45/WifExamples.Net45.sln

Run the code

  • Right click on the solution inside Visual Studio and select "Set startup projects".
  • Select "Multiple startup projects" and set at least "DummySTS" and one of the server projects to "Start".
  • Run the code by pressing F5.