{"id":20215664,"url":"https://github.com/casdoor/casdoor-spring-security-react-example","last_synced_at":"2026-05-11T10:34:29.295Z","repository":{"id":104354349,"uuid":"532307057","full_name":"casdoor/casdoor-spring-security-react-example","owner":"casdoor","description":"Spring Security (via Filter) example app integrated with Casdoor","archived":false,"fork":false,"pushed_at":"2023-08-08T06:02:43.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T22:16:19.210Z","etag":null,"topics":["auth","authentication","authn","casbin","casdoor","iam","spring","spring-security","sso"],"latest_commit_sha":null,"homepage":"https://casdoor.org/docs/integration/spring-security/spring-security-filter","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-09-03T15:59:18.000Z","updated_at":"2022-09-11T03:27:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"882b0b21-e436-46e7-8b99-dd3d3062b886","html_url":"https://github.com/casdoor/casdoor-spring-security-react-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-spring-security-react-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-spring-security-react-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-spring-security-react-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fcasdoor-spring-security-react-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/casdoor-spring-security-react-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241652964,"owners_count":19997578,"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","authentication","authn","casbin","casdoor","iam","spring","spring-security","sso"],"created_at":"2024-11-14T06:23:52.307Z","updated_at":"2026-05-11T10:34:29.259Z","avatar_url":"https://github.com/casdoor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# casdoor-spring-security-react-example\n\nA silent sign-in example is implemented through spring security and casdoor react SDK.\n\n### Installation:\n\nFirst, you need to clone the repository.\n\n```shell\ngit clone https://github.com/casdoor/casdoor-spring-security-react-example\n```\n\nThen, download the corresponding Maven dependency and front-end dependency respectively.\n\n```shell\n# backend\nmvn dependency:resolve\n\n# frontend\ncd web\n\nyarn install\nor \nnpm install\n```\n\nNext, you need to configure two places.\n\n- First, only 7 parameters in `src/main/resources/application.yml` need to be configured.\n\n  ```yaml\n  server:\n      port: 8080\n  casdoor:\n      endpoint: http://localhost:8000\n      client-id: \u003cyour client id\u003e\n      client-secret: \u003cyour client secret\u003e \n      certificate: \u003cyour certificate\u003e\n      organization-name: \u003cyour organization name\u003e\n      application-name: \u003cyour application name\u003e\n      redirect-url: \u003cyour frontend url\u003e/callback\n  ```\n\n- Second, you only need to configure the 6 parameters in `web/src/Setting.js`.\n\n    ```js\n    export const ServerUrl = \"http://localhost:8080\";\n    \n    const sdkConfig = {\n      serverUrl: \"http://localhost:8000\",\n      clientId: \"\u003cyour client id\u003e\",\n      appName: \"\u003cyour application name\u003e\",\n      organizationName: \"\u003cyour organization name\u003e\",\n      redirectPath: \"/callback\",\n    };\n    ```\n\n\n### Start\n\nFirst, run the `mvn package` command in the project root directory.\n\nThen enter the target directory and execute the `java -jar example-0.0.1-SNAPSHOT.jar` command.\n\nFinally, enter the web directory and execute the command `yarn start`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-spring-security-react-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fcasdoor-spring-security-react-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fcasdoor-spring-security-react-example/lists"}