Passer au contenu principal

Unity

Étape 1 : Déployez Casdoor

Deploy Casdoor in production mode. See Server installation. Ensure the server is reachable and you can sign in (e.g. admin / 123). For a quick start, use the Casdoor demo.

Étape 2 : Importez Casdoor.Client

Importez Casdoor.Client pour .NET dans le Casdoor-dotnet-sdk.

Une méthode optionnelle est la suivante :

  • git@github.com:casdoor/casdoor-dotnet-sdk.git
  • Exécutez ConsoleApp dans le dossier Sample.
  • Obtenez le dossier /casdoor-dotnet-sdk/src/Casdoor.Client/bin/Debug/net462.

Import the net462 folder (or another target framework folder) into your Unity project as shown below.

import-sdk

Étape 3 : Utilisation

Apprenez à utiliser le SDK Casdoor.Client pour le développement mobile Unity 3D en regardant casdoor-unity-example.

After running the casdoor-unity-example, the following interfaces appear:

  • Connectez-vous avec un nom d'utilisateur et un mot de passe :
iOSAndroid
iOS-gifAndroid-gif
  • Connectez-vous avec la page web Casdoor :
iOSAndroid
iOS-gif-webAndroid-gif-web