{"id":20215611,"url":"https://github.com/casdoor-net/casdoor-dotnet-desktop-example","last_synced_at":"2025-09-22T01:31:37.062Z","repository":{"id":51605194,"uuid":"520149975","full_name":"casdoor/casdoor-dotnet-desktop-example","owner":"casdoor","description":".NET WPF desktop app example for Casdoor","archived":false,"fork":false,"pushed_at":"2024-02-18T16:50:21.000Z","size":1270,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T06:28:25.195Z","etag":null,"topics":["authentication","authn","casdoor","desktop","dotnet","example","iam","oauth","oauth2","oidc","pkce","sso","wpf"],"latest_commit_sha":null,"homepage":"https://github.com/casdoor/casdoor","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casdoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-01T14:46:29.000Z","updated_at":"2024-04-24T15:53:49.000Z","dependencies_parsed_at":"2024-02-18T17:45:23.513Z","dependency_job_id":null,"html_url":"https://github.com/casdoor/casdoor-dotnet-desktop-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-dotnet-desktop-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-dotnet-desktop-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-dotnet-desktop-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-dotnet-desktop-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-dotnet-desktop-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233814463,"owners_count":18734531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authn","casdoor","desktop","dotnet","example","iam","oauth","oauth2","oidc","pkce","sso","wpf"],"created_at":"2024-11-14T06:23:33.952Z","updated_at":"2025-09-22T01:31:30.987Z","avatar_url":"https://github.com/casdoor.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casdoor-dotnet-desktop-example\n\nThis project was bootstrapped with [WPF](https://github.com/dotnet/wpf) and [dotnet](https://www.dot.net/).\n\n![demo](demo.gif)\n\n## Prerequisites\n\n[dotnet6 sdk](https://dotnet.microsoft.com/en-us/download)\n\n[webview2 runtime](https://developer.microsoft.com/zh-cn/microsoft-edge/webview2/#download-section) (It's already preinstalled in your windows generally)\n\n## Init example\n\nYou need to init requires 5 parameters, which are all string type:\n\n| Name                  | Description                                                                                             | File                  |\n| ------------          | ------------------------------------------------------------------------------------------------------- | --------------------- |\n| Domain                | Your Casdoor server host/domain                                                                         | `CasdoorVariables.cs` |\n| ClientId              | The Client ID of your Casdoor application                                                               | `CasdoorVariables.cs` |\n| AppName               | The name of your Casdoor application                                                                    | `CasdoorVariables.cs` |\n| CallbackUrl           | The path of the callback URL for your Casdoor application, will be `casdoor://callback` if not provided | `CasdoorVariables.cs` |\n| OrganizationName      | The organizatio name of your Casdoor application                                                        | `CasdoorVariables.cs` |\n| ApplicationType       | Webapp, webapi or native                                                                                | `CasdoorVariables.cs` |\n| Scope                 | The scopes that the client is requesting                                                                | `CasdoorVariables.cs` |\n| RequireHttpsMetadata  | Whether require https for casdoor endpoint                                                              | `CasdoorVariables.cs` |\n\nIf you don't set these parameters, this project will use the [Casdoor online demo](https://door.casdoor.com) as the defult Casdoor server and use the [Casnode](https://door.casdoor.com/applications/app-casnode) as the default Casdoor application.\n\n## How to run it\n\n### Visual Studio\n\n1. Open casdoor-dotnet-desktop-example.sln\n2. Press Ctrl + F5 to start\n\n### Command line\n\n1. cd src/DesktopApp\n2. dotnet run\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor-net%2Fcasdoor-dotnet-desktop-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor-net%2Fcasdoor-dotnet-desktop-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor-net%2Fcasdoor-dotnet-desktop-example/lists"}