5 Star 24 Fork 12

老张的哲学 / Blog.IdentityServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Logo

   

Info

1、项目支持SqlServer和Mysql,默认Mysql,在配置文件中可以设置:"IsMysql": true,
2、如果用mysql,直接执行update-database即可,迁移文件在data下的MigrationsMySql文件夹;
3、如果不想用自带的迁移文件,先删掉data下的MigrationsMySql文件夹,然后执行(具体步骤在SeedData.cs中);

给个星星! ⭐️

如果你喜欢这个项目或者它帮助你, 请给 Star~(辛苦星咯)


售后服务与支持

鼓励作者,简单打赏,入微信群,随时随地解答我框架中(NetCore、Vue、DDD、IdentityServer4等)的疑难杂症。
注意主要是帮忙解决bug和思路,不会远程授课,但是可以适当发我代码,我帮忙调试,
打赏的时候,备注自己的微信号,我拉你进群,两天内没回应,QQ私聊我(3143422472);

赞赏列表

赞赏码 [图片若加载不出来,点这里](http://apk.neters.club/laozhangisphigood.jpg)

Tips:

 /*
  * 本项目同时支持Mysql和Sqlserver,我一直使用的是Mysql,所以Mysql的迁移文件已经配置好,在Data文件夹下,
  * 直接执行update-database xxxx,那三步即可。如果你使用sqlserver,可以先从迁移开始,下边有步骤
  * 
  * 当然你也可以把Data文件夹除了ApplicationDbContext.cs文件外都删掉,自己重新做迁移。
  * 迁移完成后,执行dotnet run /seed
  *  1、PM> add-migration InitialIdentityServerPersistedGrantDbMigrationMysql -c PersistedGrantDbContext -o Data/MigrationsMySql/IdentityServer/PersistedGrantDb 
     Build started...
     Build succeeded.
     To undo this action, use Remove-Migration.
     2、PM> update-database -c PersistedGrantDbContext
     Build started...
     Build succeeded.
     Applying migration '20200509165052_InitialIdentityServerPersistedGrantDbMigrationMysql'.
     Done.
     3、PM> add-migration InitialIdentityServerConfigurationDbMigrationMysql -c ConfigurationDbContext -o Data/MigrationsMySql/IdentityServer/ConfigurationDb
     Build started...
     Build succeeded.
     To undo this action, use Remove-Migration.
     4、PM> update-database -c ConfigurationDbContext
     Build started...
     Build succeeded.
     Applying migration '20200509165153_InitialIdentityServerConfigurationDbMigrationMysql'.
     Done.
     5、PM> add-migration AppDbMigration -c ApplicationDbContext -o Data/MigrationsMySql
     Build started...
     Build succeeded.
     To undo this action, use Remove-Migration.
     6、PM> update-database -c ApplicationDbContext
     Build started...
     Build succeeded.
     Applying migration '20200509165505_AppDbMigration'.
     Done.
  * 
  */



跟踪教程

博客园:https://www.cnblogs.com/laozhang-is-phi/
视频:https://www.bilibili.com/video/av76828468

微信公众号:https://mvp.neters.club/MVP_ids4_2020/2020



技术:

  * .Net Core 3.1 MVC
  
  * EntityFramework Core
  
  * SqlServer/Mysql

  * IdentityServer4

  * Authentication and Authorization

  * OAuth2 and OpenId Connect

  * GrantTypes.Implicit

  * oidc-client

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/laozhangIsPhi/Blog.IdentityServer.git
git@gitee.com:laozhangIsPhi/Blog.IdentityServer.git
laozhangIsPhi
Blog.IdentityServer
Blog.IdentityServer
master

搜索帮助