{"id":20215595,"url":"https://github.com/casdoor/shenyu-plugin-auth","last_synced_at":"2026-06-08T15:33:01.095Z","repository":{"id":104354813,"uuid":"530171320","full_name":"casdoor/shenyu-plugin-auth","owner":"casdoor","description":"Casdoor SSO Plugin for Apache Shenyu","archived":false,"fork":false,"pushed_at":"2022-10-01T14:45:24.000Z","size":488,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T11:19:45.808Z","etag":null,"topics":["apache","auth","authentication","authorization","casbin","casdoor","gateway","gateway-api","iam","java","middleware","plugin","shenyu","sso"],"latest_commit_sha":null,"homepage":"https://shenyu.apache.org/docs/plugin-center/security/casdoor","language":"Java","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-08-29T10:32:53.000Z","updated_at":"2023-08-26T13:56:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f94f71f-36ec-4e90-b469-09bb07842c07","html_url":"https://github.com/casdoor/shenyu-plugin-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casdoor/shenyu-plugin-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshenyu-plugin-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshenyu-plugin-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshenyu-plugin-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshenyu-plugin-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/shenyu-plugin-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshenyu-plugin-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34069491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apache","auth","authentication","authorization","casbin","casdoor","gateway","gateway-api","iam","java","middleware","plugin","shenyu","sso"],"created_at":"2024-11-14T06:23:30.211Z","updated_at":"2026-06-08T15:33:01.074Z","avatar_url":"https://github.com/casdoor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: ShenYu\ndescription: Using Casdoor in ShenYu\nkeywords: [ShenYu]\n---\n\nShenYu has casdoor plugin to use casdoor\n\n## Step1. Deploy Casdoor\n\nFirstly, the Casdoor should be deployed. \n\nYou can refer to the Casdoor official documentation for the [Server Installation](/docs/basic/server-installation).\n\nAfter a successful deployment, you need to ensure:\n\n- The Casdoor server is successfully running on **http://localhost:8000**.\n- Open your favorite browser and visit **http://localhost:7001**, you will see the login page of Casdoor.\n- Input `admin` and `123` to test login functionality is working fine.\n\nThen you can quickly implement a casdoor based login page in your own app with the following steps.\n\n## Step2. Configure Casdoor application\n#### 1. Create or use an existing Casdoor application.\n#### 2. Add Your redirect url \n   ![Casdoor Application Setting](static/img/shenyu_config.png)\n#### 3. On the certificate editing page, you can see your `Certificate`.\n   ![Casdoor Certification Setting](static/img/shenyu_cert.png)\n\n## Step3. Use casdoor plugin in shenyu\n### 1. Config casdoor plugin in shenyu\n\n   ![Shenyu Config Plugin](static/img/shenyu_configPlugin.png)\n\nnote: because the shenyu only have Single line input box so we need add \\n in every line of cert.\n   ![Casdoor Certification Setting](static/img/shenyu_cert2.png)\n\nYou can copy it and paste it on the certificate of shenyu casdoor config.\n\n**You don't need save it in casdoor certificate editing page**,because it just for copying.\n\n### 2. Confing shenyu casdoor's plugin\n   ![Shenyu Casdoor](static/img/shenyu_casdoor.png)\n   You can config what you need to use casdoor config\n\n### 3. Get the service and use \n\n   #### 3.1 Visit the Web directly like\n   ![Shenyu Fail Login](static/img/shenyu_faillogin.png)\n\n   #### 3.2 Use casdoor login like this\n   ![Shenyu Login](static/img/shenyu_login.png)\n   ![Shenyu Success Login](static/img/shenyu_successlogin.png)\n\n   #### 3.3 Carry token in Headers,you also can visit it\n   ![Shenyu token](static/img/shenyu_token.png)\n\n   #### 3.4 It also can save name,id and organization in Headers so that you can use them in next time  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fshenyu-plugin-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fshenyu-plugin-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fshenyu-plugin-auth/lists"}