Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.47 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.47 KB

This document describes how to setup the provided Csharp code (in the directory csharp_skeleton/) in Visual Studio.

Prerequisites

  • Visual Studio 2013 (or more recent)
  • DotNetOpenAuth installed (as per referenced project where all code is available)

Setup using Visual Studio

  1. Import the project in Visual Studio and install prerequisites:

  2. Open the csharp_skeleton.sln file

  3. Install the DotNetOpenAuth dependency: select TOOLS->NuGet Package Manager->Package Manager Console and then execute the command Install-Package DotNetOpenAuth.OpenId.RelyingParty -Version 4.3.4.13329.

  4. Test that the project runs:

  5. Specify the path to the directory containing all necessary files (client.json, index.html, etc.) in Client::ROOT_PATH (in csharp_skeleton/Client.cs).

  6. Run the project.

  7. The application should output something like:

    ```
    A simple webserver. Press a key to quit.
    Webserver running...
    ```
    
  8. Verify the Relying Party (RP) is running at http://localhost:8090

  9. Start adding to the skeleton code:

  10. The missing parts are marked with TODO in csharp_skeleton/Client.cs.

  11. Read the Csharp Cookbook for more information about how to use the DotNetOpenAuth library.

  12. Make sure to delete cookies and cached data in the browser while testing to avoid strange results (e.g. due to the browser caching redirects, etc.).