This project was bootstrapped with WPF and dotnet.
webview2 runtime (It's already preinstalled in your windows generally)
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.
- Open casdoor-dotnet-desktop-example.sln
- Press Ctrl + F5 to start
- cd src/DesktopApp
- dotnet run