{"id":20215653,"url":"https://github.com/casdoor/casdoor-unity-example","last_synced_at":"2025-09-22T01:31:41.083Z","repository":{"id":184672407,"uuid":"671771187","full_name":"casdoor/casdoor-unity-example","owner":"casdoor","description":"Unity 3D Mobile games app example for Casdoor","archived":false,"fork":false,"pushed_at":"2023-08-20T03:19:10.000Z","size":16747,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T06:28:42.766Z","etag":null,"topics":["android","casdoor","desktop","dotnet","game","iam","ios","mobile","oauth","oauth2","oidc","sso","unity","unity3d"],"latest_commit_sha":null,"homepage":"https://github.com/casdoor/casdoor-dotnet-sdk","language":"ShaderLab","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}},"created_at":"2023-07-28T05:18:43.000Z","updated_at":"2024-03-20T15:28:13.000Z","dependencies_parsed_at":"2024-01-29T00:03:11.880Z","dependency_job_id":"372f0041-a937-4143-8de8-8e82c3d2359a","html_url":"https://github.com/casdoor/casdoor-unity-example","commit_stats":null,"previous_names":["casdoor/casdoor-unity-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-unity-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-unity-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-unity-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-unity-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-unity-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":["android","casdoor","desktop","dotnet","game","iam","ios","mobile","oauth","oauth2","oidc","sso","unity","unity3d"],"created_at":"2024-11-14T06:23:47.358Z","updated_at":"2025-09-22T01:31:31.059Z","avatar_url":"https://github.com/casdoor.png","language":"ShaderLab","readme":"# casdoor-unity-example\n\nThe example uses the [Casdoor demo site](https://door.casdoor.com/) server and [`Casdoor.Client`](https://github.com/casdoor/casdoor-dotnet-sdk/tree/master/src/Casdoor.Client) SDK for `.NET` in [casdoor-dotnet-sdk](https://github.com/casdoor/casdoor-dotnet-sdk/). \n\nThe game in this example is based on [ValleyOfCubes_Unity3D](https://github.com/oussamabonnor1/ValleyOfCubes_Unity3D).\n\n## Quick Start\n\n- download the code\n\n```bash\n git clone git@github.com:casdoor/casdoor-unity-example.git\n```\n\n- Open the newly downloaded code in `Unity Hub` and run it.\n\n## After running, you will see the following  interfaces:\n\n### Login with username and password\n\n|                           **iOS**                           |                         **Android**                          |\n| :---------------------------------------------------------: | :----------------------------------------------------------: |\n| \u003cimg src=\"./iOS-gif.gif\" alt=\"iOS-gif\" style=\"zoom:30%;\" /\u003e | \u003cimg src=\"./Android-gif.gif\" alt=\"Android-gif\" style=\"zoom: 30%;\" /\u003e |\n\n### Login with the casdoor web page\n\n|                           **iOS**                            |                         **Android**                          |\n| :----------------------------------------------------------: | :----------------------------------------------------------: |\n| \u003cimg src=\"./iOS-gif-web.gif\" alt=\"iOS-gif\" style=\"zoom:30%;\" /\u003e | \u003cimg src=\"./Android-gif-web.gif\" alt=\"Android-gif\" style=\"zoom: 30%;\" /\u003e |\n\n## Configure\n\nInitialization requires 6 parameters, which are all str type:\n| Name (in order)  | Must | Description                                            |\n| ---------------- | ---- | ------------------------------------------------------ |\n| Endpoint         | Yes  | Casdoor Server Url, such as `https://door.casdoor.com` |\n| OrganizationName | Yes  | Organization name                                      |\n| ApplicationName  | Yes  | Application name                                       |\n| ApplicationType  | Yes  | webapp, webapi or native                               |\n| ClientId         | Yes  | Your client id                                         |\n| ClientSecret     | Yes  | Your client secret                                     |\n\n```C#\nvar httpClient = new HttpClient();\nvar client = new CasdoorClient(HttpClient, new CasdoorOptions{\n    Endpoint = \"https://door.casdoor.com\",\n    OrganizationName = \"build-in\",\n    ApplicationName = \"app-build-in\",\n    ApplicationType = \"native\", // webapp, webapi or native\n    ClientId = \"\u003cyour client id\u003e\",\n    ClientSecret = \"\u003cyour client secret\u003e\",\n});\n```\n\n## License\n\nThis project is licensed under the [Apache 2.0 license](https://github.com/casdoor/casdoor-dotnet-sdk/blob/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-unity-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fcasdoor-unity-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-unity-example/lists"}