{"id":20215584,"url":"https://github.com/casdoor/shiro-casdoor","last_synced_at":"2025-06-22T22:04:00.907Z","repository":{"id":43821863,"uuid":"459625868","full_name":"casdoor/shiro-casdoor","owner":"casdoor","description":"Apache Shiro Integration with Casdoor","archived":false,"fork":false,"pushed_at":"2023-07-06T09:59:38.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T11:19:44.484Z","etag":null,"topics":["apache","auth","authentication","authorization","casdoor","integration","oauth","oidc","plugin","realm","shiro"],"latest_commit_sha":null,"homepage":"https://shiro.apache.org/integration.html","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-15T14:59:16.000Z","updated_at":"2022-02-17T15:08:54.000Z","dependencies_parsed_at":"2024-11-14T06:26:40.713Z","dependency_job_id":"1af929a2-f466-4c23-8a94-0cefe90d4bf0","html_url":"https://github.com/casdoor/shiro-casdoor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/casdoor/shiro-casdoor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshiro-casdoor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshiro-casdoor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshiro-casdoor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshiro-casdoor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casdoor","download_url":"https://codeload.github.com/casdoor/shiro-casdoor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casdoor%2Fshiro-casdoor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261374407,"owners_count":23148975,"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":["apache","auth","authentication","authorization","casdoor","integration","oauth","oidc","plugin","realm","shiro"],"created_at":"2024-11-14T06:23:23.063Z","updated_at":"2025-06-22T22:03:55.862Z","avatar_url":"https://github.com/casdoor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shiro-casdoor\n\n[![build](https://github.com/casdoor/shiro-casdoor/actions/workflows/maven-ci.yml/badge.svg)](https://github.com/casdoor/shiro-casdoor/actions/workflows/maven-ci.yml)\n[![License](https://img.shields.io/github/license/casdoor/casdoor-spring-boot-starter.svg?style=flat-square\u0026color=blue)](http://www.apache.org/licenses/LICENSE-2.0.txt)\n[![Discord](https://img.shields.io/discord/1022748306096537660?logo=discord\u0026label=discord\u0026color=5865F2)](https://discord.gg/5rPsrAzK7S)\n\nThis plugin contains a Shiro Realm for Casdoor which will validate Casdoor JWT access tokens.\n\nThis plugin provides a Shiro Realm that will authenticate requests with an Authorization: `Bearer \u003caccess-token\u003e` header.\n\nTo use the realm, first [define and configure](https://shiro.apache.org/realm.html#realm-configuration) the `CasdoorShiroRealm`.\n\nThe JWT claim information can be retrieved from the current Shiro Subject by casting the principal to `CasdoorUser`:\n\n```java\nimport org.casbin.casdoor.entity.CasdoorUser;\n...\n        \nCasdoorUser casdoorUser = (CasdoorUser) SecurityUtils.getSubject().getPrincipal();\n```\n\nSee the examples to help you get started even faster:\n\n- [casdoor-spring-boot-shiro-example](https://github.com/casdoor/casdoor-spring-boot-shiro-example)\n\nWe also publish these libraries for Java:\n\n- [casdoor-java-sdk](https://github.com/casdoor/casdoor-java-sdk)\n- [casdoor-spring-boot-starter](https://github.com/casdoor/casdoor-spring-boot-starter)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fshiro-casdoor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasdoor%2Fshiro-casdoor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasdoor%2Fshiro-casdoor/lists"}