{"id":16329893,"url":"https://github.com/anjoy8/blog.identityserver","last_synced_at":"2025-10-07T07:47:41.877Z","repository":{"id":40884883,"uuid":"174517676","full_name":"anjoy8/Blog.IdentityServer","owner":"anjoy8","description":"🥗 打造一个功能强大的通用型Ids4用户认证授权服务中心，配合之前的所有开源项目","archived":false,"fork":false,"pushed_at":"2022-12-08T10:03:51.000Z","size":1812,"stargazers_count":479,"open_issues_count":17,"forks_count":145,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-25T07:06:33.496Z","etag":null,"topics":["asp-net-core","efcore","identityserver4","netcore"],"latest_commit_sha":null,"homepage":"https://ids.neters.club/","language":"C#","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/anjoy8.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}},"created_at":"2019-03-08T10:31:31.000Z","updated_at":"2025-05-21T08:37:09.000Z","dependencies_parsed_at":"2023-01-25T11:31:10.231Z","dependency_job_id":null,"html_url":"https://github.com/anjoy8/Blog.IdentityServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anjoy8/Blog.IdentityServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjoy8%2FBlog.IdentityServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjoy8%2FBlog.IdentityServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjoy8%2FBlog.IdentityServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjoy8%2FBlog.IdentityServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anjoy8","download_url":"https://codeload.github.com/anjoy8/Blog.IdentityServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anjoy8%2FBlog.IdentityServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278740817,"owners_count":26037480,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["asp-net-core","efcore","identityserver4","netcore"],"created_at":"2024-10-10T23:17:31.313Z","updated_at":"2025-10-07T07:47:41.854Z","avatar_url":"https://github.com/anjoy8.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\n![Logo](https://github.com/anjoy8/Blog.IdentityServer/blob/master/Blog.IdentityServer/wwwroot/logofull.png)\n\n\u0026nbsp;\n\u0026nbsp;\n\n## Info \n1、项目支持SqlServer和Mysql，默认Mysql，在配置文件中可以设置：\"IsMysql\": true,  \n2、如果用mysql，直接执行update-database即可，迁移文件在data下的MigrationsMySql文件夹；    \n3、如果不想用自带的迁移文件，先删掉data下的MigrationsMySql文件夹，然后执行（具体步骤在SeedData.cs中）；  \n\n## 给个星星! ⭐️\n如果你喜欢这个项目或者它帮助你, 请给 Star~（辛苦星咯）\n\n*********************************************************\n\n  \n## 售后服务与支持  \n\n鼓励作者，简单打赏，入微信群，随时随地解答我框架中（NetCore、Vue、DDD、IdentityServer4等）的疑难杂症。     \n注意主要是帮忙解决bug和思路，不会远程授课，但是可以适当发我代码，我帮忙调试，       \n打赏的时候，备注自己的微信号，我拉你进群，两天内没回应，QQ私聊我（3143422472）；   \n\n[赞赏列表](http://apk.neters.club/.doc/Contribution/)  \n\n \n\u003cimg src=\"http://apk.neters.club/laozhangisphigood.jpg\" alt=\"赞赏码\" width=\"300\" \u003e\n[图片若加载不出来，点这里](http://apk.neters.club/laozhangisphigood.jpg)\n\n  \u003cul\u003e\n\u003cli\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10529982\" href=\"https://www.bilibili.com/video/BV1vC4y1p7Za?p=14\"\u003e前端Blog.Admin-后端Blog.Core-认证中心(本项目) 快速启动 \u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n## Tips：\n```\n /*\n  * 本项目同时支持Mysql和Sqlserver，我一直使用的是Mysql，所以Mysql的迁移文件已经配置好，在Data文件夹下，\n  * 直接执行update-database xxxx,那三步即可。如果你使用sqlserver，可以先从迁移开始，下边有步骤\n  * \n  * 当然你也可以把Data文件夹除了ApplicationDbContext.cs文件外都删掉，自己重新做迁移。\n  * 迁移完成后，执行dotnet run /seed\n  *  1、PM\u003e add-migration InitialIdentityServerPersistedGrantDbMigrationMysql -c PersistedGrantDbContext -o Data/MigrationsMySql/IdentityServer/PersistedGrantDb \n     Build started...\n     Build succeeded.\n     To undo this action, use Remove-Migration.\n     2、PM\u003e update-database -c PersistedGrantDbContext\n     Build started...\n     Build succeeded.\n     Applying migration '20200509165052_InitialIdentityServerPersistedGrantDbMigrationMysql'.\n     Done.\n     3、PM\u003e add-migration InitialIdentityServerConfigurationDbMigrationMysql -c ConfigurationDbContext -o Data/MigrationsMySql/IdentityServer/ConfigurationDb\n     Build started...\n     Build succeeded.\n     To undo this action, use Remove-Migration.\n     4、PM\u003e update-database -c ConfigurationDbContext\n     Build started...\n     Build succeeded.\n     Applying migration '20200509165153_InitialIdentityServerConfigurationDbMigrationMysql'.\n     Done.\n     5、PM\u003e add-migration AppDbMigration -c ApplicationDbContext -o Data/MigrationsMySql\n     Build started...\n     Build succeeded.\n     To undo this action, use Remove-Migration.\n     6、PM\u003e update-database -c ApplicationDbContext\n     Build started...\n     Build succeeded.\n     Applying migration '20200509165505_AppDbMigration'.\n     Done.\n  * \n  */\n\n\n\n```\n\n\n*****************************************************\n### 跟踪教程\n\n\n博客园：https://www.cnblogs.com/laozhang-is-phi/  \n视频：https://www.bilibili.com/video/av76828468  \n\n\u003cul\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10483922\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/10483922.html\"\u003e01 ║ 授权服务器 IdentityServer4 开篇讲\u0026amp;计划书\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10529982\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/10529982.html\"\u003e02 ║ 基础知识集合 \u0026amp; 项目搭建一\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10660403\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/10660403.html\"\u003e03 ║ 详解授权持久化 \u0026amp; 用户数据迁移\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10911438\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/10911438.html\"\u003e04 ║ 用户数据管理 \u0026amp; 前后端授权联调\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca class=\"entry\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/11844395.html\" target=\"_blank\"\u003e05 ║ 多项目集成统一认证中心的思考\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca class=\"entry\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/rolemanager-one.html\" target=\"_blank\"\u003e06 ║ 统一角色管理（上）\u003c/a\u003e\u0026nbsp;\u003c/li\u003e\n\u003cli\u003e\u003ca class=\"entry\" href=\"https://www.cnblogs.com/laozhang-is-phi/p/vue-core-ids.html\" target=\"_blank\"\u003e07 ║ 客户端、服务端、授权中心全线打通\u003c/a\u003e\u0026nbsp;\u003c/li\u003e\n\u003cli\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\n\n微信公众号：https://mvp.neters.club/MVP_ids4_2020/2020  \n\n\u003cul\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10483922\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=133\"\u003e【Ids4实战】分模块保护资源API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10529982\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=130\"\u003e【Ids4实战】最全的 v4 版本升级指南\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10660403\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=74\"\u003e【Ids4实战】深究配置——用户信息操作篇\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca id=\"post_title_link_10911438\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=73\"\u003e【实战 Ids4】║ 认证中心之内部加权\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca class=\"entry\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=72\" target=\"_blank\"\u003e【实战 Ids4】║ 控制台密码模式搭配Ocelot网关\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca class=\"entry\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=71\" target=\"_blank\"\u003e【实战 Ids4】║ 在Swagger中调试认证授权中心\u003c/a\u003e\u0026nbsp;\u003c/li\u003e\n\u003cli\u003e\u003ca class=\"entry\" href=\"http://apk.neters.club/api/Blog/GoUrl?id=70\" target=\"_blank\"\u003e【实战 Ids4】║ 又一个项目迁移完成（MVC）\u003c/a\u003e\u0026nbsp;\u003c/li\u003e\n\u003cli\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n```\n```\n\n\n\n**************************************************************\n\n  技术：\n\n      * .Net Core 3.1 MVC\n      \n      * EntityFramework Core\n      \n      * SqlServer/Mysql\n\n      * IdentityServer4\n\n      * Authentication and Authorization\n\n      * OAuth2 and OpenId Connect\n\n      * GrantTypes.Implicit\n\n      * oidc-client\n      \n      \n\n\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanjoy8%2Fblog.identityserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanjoy8%2Fblog.identityserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanjoy8%2Fblog.identityserver/lists"}