摘要: 1、沿用上一篇的Asp.Net Core Web API服务,修改Startup.cs,解决跨域问题 public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration 阅读全文
posted @ 2021-08-28 20:07 天众师兄 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1、新建Asp.net Core Web Mvc项目 2、Nuget包下载安装 Grpc.Net.ClientGoogle.ProtoBufGrpc.Tools 3、新建Protos文件夹,复制之前文章Grpc服务器的greet.proto文件 syntax = "proto3"; option c 阅读全文
posted @ 2021-08-28 20:06 天众师兄 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1、新建Asp.net Core Web Mvc项目 2、Nuget包下载安装 Grpc.Net.ClientGoogle.ProtoBufGrpc.Tools 3、新建Protos文件夹,复制之前文章Grpc服务器的greet.proto文件 syntax = "proto3"; option c 阅读全文
posted @ 2021-08-28 20:06 天众师兄 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1、在.Net Core框架下 实现Grpc客户端和服务端的四种处理方法,包括: 一元方法服务器流式处理方法客户端流式处理方法双向流式处理方法 2、沿用上一篇的服务端,修改GreeterService.cs文件 public class GreeterService : TestGrpc.TestG 阅读全文
posted @ 2021-08-28 20:05 天众师兄 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 一、Grpc服务端 1、新建.Net core框架下Grpc服务 2、修改launchsettings.json { "profiles": { "GrpcServer": { "commandName": "Project", "dotnetRunMessages": "true", "launc 阅读全文
posted @ 2021-08-25 19:37 天众师兄 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 一、Grpc服务端 1、新建.Net Framework框架下的控制台应用程序 新建Protos文件夹 2、NuGet包下载安装 Google.ProtobufGrpc.CoreGrpc.Tools 3、Protos文件夹下添加 MyTestGrpc.proto文件 syntax = "proto3 阅读全文
posted @ 2021-08-25 19:36 天众师兄 阅读(554) 评论(0) 推荐(0) 编辑
摘要: Asp.Net Core Mvc项目连接IdentityServer4项目,输入账号密码验证后,无法跳转到MVC项目。 停留在 http://localhost:5001/Account/Login?ReturnUrl 这个界面,不跳转 解决方法:IdentityServer4项目中Startup类 阅读全文
posted @ 2021-08-01 07:15 天众师兄 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 本文实现控制台应用程序连接IdentityServer服务端进行客户端验证,并调用授权API 1、新建控制台应用程序,nuget包安装 IdentityModel ,Program.cs代码如下: class Program { static async Task Main(string[] arg 阅读全文
posted @ 2021-08-01 07:14 天众师兄 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Asp.Net Core MVC项目连接IdentityServer4服务器登录后,停留在http://localhost:5001/connect/authorize?client_id 这个页面,无法跳转成功。 客户端Asp.Net Core MVC项目报错, The cookie '.AspN 阅读全文
posted @ 2021-08-01 07:14 天众师兄 阅读(616) 评论(0) 推荐(1) 编辑
摘要: 1、新建空的Identity项目 2、访问localhost:5001/.well-known/openid-configuration 3、访问localhost:5001/connect/token 4、需要用postman 访问localhost:5001/connect/token,要添加参 阅读全文
posted @ 2021-08-01 07:13 天众师兄 阅读(128) 评论(0) 推荐(0) 编辑