Giter Site home page Giter Site logo

casdoor / casdoor-unity-example Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 16.35 MB

Unity 3D Mobile games app example for Casdoor

Home Page: https://github.com/casdoor/casdoor-dotnet-sdk

License: Apache License 2.0

Mathematica 10.93% C# 21.23% ShaderLab 57.96% HLSL 9.88%
oauth unity unity3d casdoor iam oauth2 oidc sso desktop dotnet

casdoor-unity-example's Introduction

casdoor-unity-example

The example uses the Casdoor demo site server and Casdoor.Client SDK for .NET in casdoor-dotnet-sdk.

The game in this example is based on ValleyOfCubes_Unity3D.

Quick Start

  • download the code
 git clone [email protected]:casdoor/casdoor-unity-example.git
  • Open the newly downloaded code in Unity Hub and run it.

After running, you will see the following interfaces:

Login with username and password

iOS Android
iOS-gif Android-gif

Login with the casdoor web page

iOS Android
iOS-gif Android-gif

Configure

Initialization requires 6 parameters, which are all str type:

Name (in order) Must Description
Endpoint Yes Casdoor Server Url, such as https://door.casdoor.com
OrganizationName Yes Organization name
ApplicationName Yes Application name
ApplicationType Yes webapp, webapi or native
ClientId Yes Your client id
ClientSecret Yes Your client secret
var httpClient = new HttpClient();
var client = new CasdoorClient(HttpClient, new CasdoorOptions{
    Endpoint = "https://door.casdoor.com",
    OrganizationName = "build-in",
    ApplicationName = "app-build-in",
    ApplicationType = "native", // webapp, webapi or native
    ClientId = "<your client id>",
    ClientSecret = "<your client secret>",
});

License

This project is licensed under the Apache 2.0 license.

casdoor-unity-example's People

Contributors

cwp0 avatar hsluoyz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cwp0

casdoor-unity-example's Issues

Make a Unity 3D Mobile games app example for Casdoor OAuth/OIDC/SSO

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.