Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
/ dotnet-sso-example Public archive

WorkOS .NET SSO Example App

Notifications You must be signed in to change notification settings

workos/dotnet-sso-example

Repository files navigation

dotnet-sso-example

An example application demonstrating how SSO works with WorkOS and .NET.

Clone and Install

Clone this repo and install dependencies:

git clone https://github.com/workos-inc/dotnet-sso-example.git && cd dotnet-sso-example && dotnet build

Configure your environment

  1. Grab your API Key and Client ID from the WorkOS Dashboard. Set these as environment variables in the Properties/launchSettings.json file, labeled WORKOS_API_KEY and WORKOS_CLIENT_ID,
  2. Create an SSO Connection in the WorkOS Dashboard.
  3. Add https://localhost:5001/Home/Callback as a Redirect URI in the Configuration section of the Dashboard.
  4. Update line 43 of HomeController.cs with the Connection domain (or Connection ID).

Run the server and log in using SSO

dotnet run

Head to https://localhost:5001 to authenticate!

For more information, see the WorkOS .NET SDK documentation.

About

WorkOS .NET SSO Example App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published