This document describes how to setup the provided Csharp code
(in the directory csharp_skeleton/
) in Visual Studio.
- Visual Studio 2013 (or more recent)
- DotNetOpenAuth installed (as per referenced project where all code is available)
-
Import the project in Visual Studio and install prerequisites:
-
Open
the csharp_skeleton.sln file
-
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
. -
Test that the project runs:
-
Specify the path to the directory containing all necessary files (
client.json
,index.html
, etc.) inClient::ROOT_PATH
(incsharp_skeleton/Client.cs
). -
Run the project.
-
The application should output something like:
``` A simple webserver. Press a key to quit. Webserver running... ```
-
Verify the Relying Party (RP) is running at http://localhost:8090
-
Start adding to the skeleton code:
-
The missing parts are marked with
TODO
incsharp_skeleton/Client.cs
. -
Read the Csharp Cookbook for more information about how to use the DotNetOpenAuth library.
-
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.).