20 Star 37 Fork 12

非空 / QrF.Core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

QrF.Core

基于.net core 2.2 的微服务框架

QrF.Core.Ids4 基于IdentityServer4的授权认证服务

开发阶段使用AddDeveloperSigningCredential()方法即可完成签名认证,但是在生产环境,我们必须使用AddSigningCredential()方法并且使用OpenSSL生成自己的签名证书

使用OpenSSL生成证书

官网下载并安装OpenSSL OpenSSL官网

下载 Win64 OpenSSL v1.1.1b 版本

在OpenSSL的bin文件夹,以管理员身份打开CMD执行以下命令:

openssl req -newkey rsa:2048 -nodes -keyout ids4.key -x509 -days 365 -out ids4.cer

下面将生成的证书和Key封装成一个文件,以便IdentityServer可以使用它们去正确地签名tokens

openssl pkcs12 -export -in ids4.cer -inkey ids4.key -out ids4.pfx

参考的应用框架

jinyancao

参考文章

.NET Core微服务实战-统一身份认证

开发环境

VS2017 / VS Code

.net core 2.2

旧版本已迁移至  [1.0分支](https://github.com/ren8179/QrF.Core/tree/1.0)
MIT License Copyright (c) 2017 非空 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于.net core 2.0 的微服务框架 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/QR/QrF.Core.git
git@gitee.com:QR/QrF.Core.git
QR
QrF.Core
QrF.Core
master

搜索帮助