{"id":41646178,"url":"https://github.com/fxboy/fanxing-security-spring-boot-starter","last_synced_at":"2026-01-24T15:31:00.977Z","repository":{"id":43134841,"uuid":"319852670","full_name":"fxboy/fanxing-security-spring-boot-starter","owner":"fxboy","description":"fanxing-security-spring-boot-starter 是 一个精简版的安全框架。它专注于权限校验与安全方面，并不考虑用户的登录状态，支持多角色多权限的权限校验，多个接口实现开发者自定义操作","archived":false,"fork":false,"pushed_at":"2022-03-16T15:32:00.000Z","size":882,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T04:36:22.706Z","etag":null,"topics":["authentication-tokenauthentication","permission-verification","security","verification"],"latest_commit_sha":null,"homepage":"","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/fxboy.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}},"created_at":"2020-12-09T05:32:27.000Z","updated_at":"2024-08-23T08:14:30.000Z","dependencies_parsed_at":"2022-09-03T08:41:34.943Z","dependency_job_id":null,"html_url":"https://github.com/fxboy/fanxing-security-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fxboy/fanxing-security-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffanxing-security-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffanxing-security-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffanxing-security-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffanxing-security-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fxboy","download_url":"https://codeload.github.com/fxboy/fanxing-security-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fxboy%2Ffanxing-security-spring-boot-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["authentication-tokenauthentication","permission-verification","security","verification"],"created_at":"2026-01-24T15:31:00.916Z","updated_at":"2026-01-24T15:31:00.972Z","avatar_url":"https://github.com/fxboy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fanxing-security-spring-boot-starter\n\n码云： https://gitee.com/fxyun/fanxing-security-spring-boot-starter\n\nGIthub：https://github.com/fxboy/fanxing-security-spring-boot-starter\n\n\n文档： https://git.fanxing.live\n\n\n\n# 准备 \nfanxing-security-spring-boot-starter\n\u003e 支持同步 异步，或者其他方法的权限\n\n因为Spring Security学习成本高，而且现如今项目都是多元化登录的方式，例如账号密码，手机验证码，社交登录：QQ，百度，微博，github等，由于没有一个很好的类将它们全部抽象出来，同时因为使用Ant Design的权限校验得到启发\n，做一个专门管理路径角色和操作权限校验的框架提供使用。\n\n这个框架现在支持 roles（角色），permissions（操作权限），Methods（提交方式）来校验权限\n\nRoles： 支持多个角色\n\nPermissions： 一个角色可以支持多个操作权限\nMethod： \n- AUTO 全部拦截\n- POST 只拦截POST\n- GET 只拦截GET\n- ......\n\n当请求的用户拥有 一个admin的角色时，但是它只有 select的操作权限，而一个路径它规定了admin角色和delete权限，所以这个请求就会被拦截，鉴权失败\n而Method的拦截方式，如果请求的方法是GET，而路径设置的是 POST，不论角色和权限是否通过，那么都会跳到鉴权失败，我也不知道有什么用，但是有总比没有好\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003elive.fanxing\u003c/groupId\u003e\n  \u003cartifactId\u003efanxing-security-spring-boot-starter\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\n\n推荐环境：\n\nJDK 1.8\n\t\nSpringboot 2.4.0\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxboy%2Ffanxing-security-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffxboy%2Ffanxing-security-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffxboy%2Ffanxing-security-spring-boot-starter/lists"}