07 2018 档案

摘要:更新 : 2018-11-24 记入一些思考 asp.net core + identity 的权限是这样的 user = 1 个登入账号 role = 1 个角色 (类似于公司里的一个职位) claim = 令牌 (类似于古代,见令令牌如见皇帝或者将军) 一般上我们会把权限建立在 Page, 操作 阅读全文
posted @ 2018-07-19 01:11 兴杰 阅读(196) 评论(0) 推荐(0) 编辑
摘要:更新 : id4 使用这个 DbContext 哦 dotnet ef migrations add identity-server-init --context PersistedGrantDbContext 参考 https://docs.microsoft.com/en-us/azure/ke 阅读全文
posted @ 2018-07-17 22:29 兴杰 阅读(606) 评论(0) 推荐(0) 编辑
摘要:refer : https://cnblogs.com/guogangj/p/4118605.html 常见的 SSL 过程 服务器生产 csr ( Certificate Signing Request ) -> 发给 CA (权威机构) -> CA 会给服务器管理人员一个密码 -> 要求管理员把 阅读全文
posted @ 2018-07-16 19:51 兴杰 阅读(147) 评论(0) 推荐(0) 编辑
摘要:参考 : http://www.cnblogs.com/xishuai/p/aspnet-5-identity-part-one.html http://cnblogs.com/xishuai/p/aspnet-5-or-core1--identity-part-two.html https://c 阅读全文
posted @ 2018-07-16 10:25 兴杰 阅读(651) 评论(0) 推荐(2) 编辑
摘要:更新: 30-04-2023 最新版本请看这篇: ASP.NET Core – User Secret & Azure Key Vault 最新 kv 多了一个功能叫 soft delete, 如果不小心洗掉后, 可以还原哦 az account set --subscription <subscr 阅读全文
posted @ 2018-07-15 14:16 兴杰 阅读(747) 评论(0) 推荐(0) 编辑
摘要:和从前的 identity 区别不是很大. 从 2.1 开始 vs 模板的 identity 都被封装了起来, 你几乎看不到任何一行代码, 需要向下面这样打开它, 才能做修改. 说一下比较常用的配置 支持第三方登入 通过 onCreatingTicket 可以把资料放入特定的 claim 中, 比如 阅读全文
posted @ 2018-07-14 10:22 兴杰 阅读(535) 评论(0) 推荐(0) 编辑
摘要:简单的为 url 添加 query 判断类 判断 1 个 class 准准是某个 class 判断 1 个 class 是不是某个 class 的 child ( must be child, parent must be class, interface can't ) 判断 1 个 class 阅读全文
posted @ 2018-07-14 09:07 兴杰 编辑
摘要:2019-05-18 更新 : 目前遇到的问题 odata 团队非常的不给力,虽然我都用了好多年了,但是越用越少. 它的维护实在太差了。 很多好的功能都是因为 bug 而用不上. 1. https://github.com/OData/WebApi/issues/194 /api/orders?$f 阅读全文
posted @ 2018-07-12 09:25 兴杰 阅读(1008) 评论(0) 推荐(0) 编辑
摘要:更新:2021-06-11 c# 的 property 是 PascalCase 而 js 是 camelCase 所以在 form post 和 ajax 的时候经常会出问题. 以前我是让 c# 迁就 js 大家统一 camelCase 但是现在我觉得应该要让它们回归本质. 当然 asp.net 阅读全文
posted @ 2018-07-12 08:56 兴杰 阅读(763) 评论(0) 推荐(0) 编辑
摘要:更新: 2021-06-17 5.0 之后多了一些不错的功能 https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/whatsnew 1.Split queries _db.Subcategories.AsSplitQuer 阅读全文
posted @ 2018-07-11 20:44 兴杰 阅读(2023) 评论(0) 推荐(0) 编辑
摘要:参考 : http://cnblogs.com/nianming/p/7068253.html https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-2.1&tabs=windows 常常有 阅读全文
posted @ 2018-07-07 14:44 兴杰 阅读(201) 评论(0) 推荐(0) 编辑
摘要:参考 : http://www.cnblogs.com/JimmyZhang/archive/2008/10/02/Cryptograph.html https://blog.csdn.net/Jogger_Ling/article/details/60576625 2 架机器要通信, 信息很容易被 阅读全文
posted @ 2018-07-04 23:11 兴杰 阅读(135) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示