{"id":18701052,"url":"https://github.com/toquery/example-spring-security-multiple-authentication","last_synced_at":"2026-07-06T08:31:32.179Z","repository":{"id":97927473,"uuid":"575778240","full_name":"ToQuery/example-spring-security-multiple-authentication","owner":"ToQuery","description":"多用户体系认证","archived":false,"fork":false,"pushed_at":"2025-11-26T04:57:27.000Z","size":142,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-29T06:35:28.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ToQuery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-08T09:23:08.000Z","updated_at":"2025-11-26T04:57:24.000Z","dependencies_parsed_at":"2024-01-22T15:23:53.545Z","dependency_job_id":"30819688-9a44-47ad-86e9-fa780ca8ccda","html_url":"https://github.com/ToQuery/example-spring-security-multiple-authentication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ToQuery/example-spring-security-multiple-authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToQuery%2Fexample-spring-security-multiple-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToQuery%2Fexample-spring-security-multiple-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToQuery%2Fexample-spring-security-multiple-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToQuery%2Fexample-spring-security-multiple-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToQuery","download_url":"https://codeload.github.com/ToQuery/example-spring-security-multiple-authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToQuery%2Fexample-spring-security-multiple-authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35184015,"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-07-06T02:00:07.184Z","response_time":106,"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":[],"created_at":"2024-11-07T11:40:28.591Z","updated_at":"2026-07-06T08:31:32.145Z","avatar_url":"https://github.com/ToQuery.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-spring-security-multiple-authentication\n\n多用户认证体系，分为后台管理、开放接口、中台接口、app接口、基础接口认证\n\n- /open OAuth的Client认证\n- /admin 基于OAuth的AuthCode模式的SSO认证\n- /app 基于C端用户的登录认证\n- /middle 中台认证\n\n\n```bash\ncurl --request GET -sL \\\n       -H \"Authorization:Bearer eyJraWQiOiIxMjM0NTYiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJleGFtcGxlIiwiYXVkIjoiZXhhbXBsZSIsIm5iZiI6MTY3MTI5NzIyMiwic2NvcGUiOlsid3JpdGUiXSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo5MDAwIiwiZXhwIjoxNjcxMzE4ODIyLCJpYXQiOjE2NzEyOTcyMjJ9.FvEEXiu3X4Fa1BTHwqU8eqUU9A5nkxsDeIA3QDx71XzSbj5qZdbHxfWYcH4sCiPJM8BFJq6W1JGL7Hdv3vI6ktziOvNKgXf6m64EDN9eFuitp9V1TX4wjsEAOHGSklRPukj4DgzjJocX5tJ0UOIVcDQ-dX2flNqdhJeCS107IVuTDQeIrkoxDW7LoO0diYfdDgetU2oL7q3dz4YciCUjqQuN3vTCvR5FmqxqT87bSn7sByGih6Eqy7dBLjvLH6tywL_oqFadayAY7930xiu9darQ7Baa6u2CsLcWYKFPQhpEYGwCblpXPTGDEgbkYO0HOCKREK7SttKU_sPfkzX3ig\" \\\n     --url 'http://localhost:8010/open/index'\n```\n\n\n##\n\n- https://mflash.dev/post/2020/11/15/protecting-endpoints-with-spring-security-resource-server/\n\n\n##\n\n- AuthenticationManagerResolver 用于根据提供的上下文解析 AuthenticationManager 的接口\n- JwtIssuerAuthenticationManagerResolver 根据 JWT（JWE）令牌发放组织解析\n- RequestMatcherDelegatingAuthenticationManagerResolver 根据请求地址解析\n- StaticAuthenticationManagerResolver\n- TrustedIssuerJwtAuthenticationManagerResolver\n\n\n- ReactiveAuthenticationManagerResolver\n- JwtIssuerReactiveAuthenticationManagerResolver\n- ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver\n- TrustedIssuerJwtAuthenticationManagerResolver\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoquery%2Fexample-spring-security-multiple-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoquery%2Fexample-spring-security-multiple-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoquery%2Fexample-spring-security-multiple-authentication/lists"}