{"id":20215698,"url":"https://github.com/casdoor/casdoor-rust-example","last_synced_at":"2025-07-21T03:09:55.644Z","repository":{"id":43166779,"uuid":"508632074","full_name":"casdoor/casdoor-rust-example","owner":"casdoor","description":"The example code for Casdoor Rust SDK","archived":false,"fork":false,"pushed_at":"2024-01-20T08:44:57.000Z","size":95,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T06:29:06.836Z","etag":null,"topics":["auth","authn","casdoor","example","oauth","oidc","rust","sdk","sso"],"latest_commit_sha":null,"homepage":"https://github.com/casdoor/casdoor-rust-sdk","language":"Vue","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":"2022-06-29T09:45:52.000Z","updated_at":"2024-11-11T07:14:10.000Z","dependencies_parsed_at":"2024-01-20T09:41:42.631Z","dependency_job_id":null,"html_url":"https://github.com/casdoor/casdoor-rust-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-rust-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-rust-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-rust-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-rust-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-rust-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233814464,"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":["auth","authn","casdoor","example","oauth","oidc","rust","sdk","sso"],"created_at":"2024-11-14T06:24:03.613Z","updated_at":"2025-01-13T22:16:33.596Z","avatar_url":"https://github.com/casdoor.png","language":"Vue","readme":"\u003ch1 align=\"center\" style=\"border-bottom: none;\"\u003e📦⚡️Casdoor Rust Example\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eAn example of casdoor-rust-sdk\u003c/h3\u003e\n\n## Architecture\n\nExample contains 2 parts:\n\n| Name     | SDK              | Language         | Source code                                                     |\n|----------|------------------|------------------|-----------------------------------------------------------------|\n| Frontend | casdoor-vue-sdk  | Javascript + Vue | https://github.com/casdoor/casdoor-rust-example/tree/master/web |\n| Backend  | casdoor-rust-sdk | Rust             | https://github.com/casdoor/casdoor-rust-example/                |\n\n## Installation\n\nExample uses Casdoor to manage members. So you need to create an organization and an application for the example in a Casdoor instance.\n\n### Necessary configuration\n\n#### Get the code\n\n```shell\ngit clone https://github.com/casdoor/casdoor\ngit clone https://github.com/casdoor/casdoor-rust-example\n```\n\n#### Run example\n\n- run casdoor\n- configure\n- Front end\n\n  ```js\n  // in ./web/src/config.js\n  export let serverUrl = `http://localhost:5000/api`; // port where rust(backend) runs\n  ```\n\n- Back end(conf.toml):\n\nThe below config is for the Casdoor demo site: https://door.casdoor.com/, please change it to your own Casdoor instance.\n\nNote: the `certificate` field is omitted as `\u003c...\u003e` due to limited space. For full config, see: https://github.com/casdoor/casdoor-rust-example/blob/master/conf.toml\n\n  ```toml\n  endpoint = \"https://door.casdoor.com\"\n  client_id = \"294b09fbc17f95daf2fe\"\n  client_secret = \"dd8982f7046ccba1bbd7851d5c1ece4e52bf039d\"\n  certificate = \"\"\"-----BEGIN CERTIFICATE-----MIIE+TCCAuGgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMDYxHTAbBgNVBAoTFENh \u003c...\u003e -----END CERTIFICATE-----\"\"\"\n  org_name = \"casbin\"\n  ```\n\n- install dependencies\n\n  ```shell\n  cd web \u0026\u0026 yarn install\n  ```\n\n- run\n\n  ```bash\n  cd web \u0026\u0026 yarn serve\n  cargo run\n  ```\n\nNow, example runs its front end at port 8080 and runs it's back end at port 5000. You can modify the code and see what will happen.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-rust-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fcasdoor-rust-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-rust-example/lists"}