This project was bootstrapped with Windows Forms 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-winform-example.sln
- Press
Ctrl + F5
to start
cd casdoor-dotnet-winform-example
dotnet run --framework net6.0-windows
ordotnet run --framework net5.0-windows