Giter Site home page Giter Site logo

casdoor / casdoor-dotnet-desktop-example Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 3.0 1.24 MB

.NET WPF desktop app example for Casdoor

Home Page: https://github.com/casdoor/casdoor

License: Apache License 2.0

C# 100.00%
authentication authn casdoor desktop dotnet example iam oauth sso oidc oauth2 pkce wpf

casdoor-dotnet-desktop-example's Introduction

casdoor-dotnet-desktop-example

This project was bootstrapped with WPF and dotnet.

demo

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
OrganizationName The organizatio name of your Casdoor application CasdoorVariables.cs
ApplicationType Webapp, webapi or native CasdoorVariables.cs
Scope The scopes that the client is requesting CasdoorVariables.cs
RequireHttpsMetadata Whether require https for casdoor endpoint 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

casdoor-dotnet-desktop-example's People

Contributors

dacongda avatar hsluoyz avatar zh6335901 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

casdoor-dotnet-desktop-example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.