Skip to content

zh6335901/casdoor-dotnet-desktop-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

casdoor-dotnet-desktop-example

This project was bootstrapped with WPF and dotnet.

Prerequisites

dotnet6 sdk

webview2 runtime (It's already preinstalled in your windows generally)

Init example

You need to init requires 5 parameters, which are all string type:

Name Description File
Domain Your Casdoor server host/domain CasdoorVariables.cs
ClientId The Client ID of your Casdoor application CasdoorVariables.cs
AppName The name of your Casdoor application CasdoorVariables.cs
CallbackUrl The path of the callback URL for your Casdoor application, will be casdoor://callback if not provided CasdoorVariables.cs
ClientSecret The Client Secret of your Casdoor application CasdoorVariables.cs

If you don't set these parameters, this project will use the Casdoor online demo as the defult Casdoor server and use the Casnode as the default Casdoor application.

How to run it

Visual Studio

  1. Open casdoor-dotnet-desktop-example.sln
  2. Press Ctrl + F5 to start

Command line

  1. cd src/DesktopApp
  2. dotnet run

About

.NET desktop app example for Casdoor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%