identityserver4 identityserver ocelot net6

net6 net8 发布失败的几个bug应急办法

定位了几个发布失败的错误,问了微软,感觉还是应急办法,目前还未修复,VS版本2022 17.8.3 net6 引用最新hosting后发布win-x64 win-x86错误 项目配置: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <Output ......
net 办法 net6 net8 bug

Asp .Net Core 系列:Ocelot结合Consul实现服务注册、服务发现

Consul下载地址:https://www.consul.io/downloads.html 文档:https://learn.hashicorp.com/consul/getting-started/services Ocelot文档:https://ocelot.readthedocs.io/ ......
Consul Ocelot Core Asp Net

.NET6中使用Log4net记录日志

1、引用NuGet包 2、创建logHelper类 using log4net.Repository; using log4net; using System; using System.Collections.Generic; using System.Diagnostics; using Sys ......
Log4net 日志 NET6 4net Log4

c# net6.0 使用FileStreamResult返回文件流,前端无法获取到文件名

前端能够获取到文件名,网上查了一下,需要设置 Response.Headers.Add("Access-Control-Expose-Headers", "Content-Disposition"); ......

在mvc客户端使用identityserver4登录成功却不能完成跳转问题

在使用Https的情况下没有问题,换成http后登录成功但是不能完成正常跳转,此问题搞了我好几个晚上,终于今晚搞定了。问题原因是在mvc客户端和服务端都需要进行cookie配置,原因是非https的情况下cookie的策略问题,所以需要在服务端和客户端都要进行配置。 服务端net6,需要添加如下代码 ......

.Net6 使用 Ocelot + Consul 看这篇就够了

.Net6 使用 Ocelot + Consul 看这篇就够了 前言 卯兔敲门,新的一年,祝大家前‘兔’似锦!希望大家假后还能找到公司的大门 O(∩_∩)O !书接上文,我们使用了 Consul实现了服务注册与发现,对Consul不熟悉的同学可以先看看。这篇文章我们来学习Ocelot网关,在这之前我 ......
Consul Ocelot Net6 Net

Consul+Ocelot+Polly在.NetCore中使用(.NET5)-Ocelot+Polly缓存、限流、熔断、降级

Consul+Ocelot+Polly在.NetCore中使用(.NET5)-Ocelot+Polly缓存、限流、熔断、降级 目录 一、简介 二、Ocelot各种策略使用和解释 2.1Ocelot缓存 2.2Ocelot限流 2.3Ocelot+Polly的熔断 三、Polly各种策略使用和解释 3 ......
Ocelot Polly 缓存 NetCore Consul

C#中的.net6 WebAPI + Vue3

ShoopingWeb没有控制器,普通api有控制器,ShoopingWeb是直达型,精简了很多中间代码,广泛适用于微服务架构 ShoopingWeb一切都在组控制台应用程序类【Program】上执行,也可以自由分类封装 namespace ShoopingWeb { public static c ......
WebAPI net6 Vue3 net Vue

identityserver4 安装证书遇到的问题

1、自己生成证书,需要用到openssl,官方下载地址 https://slproweb.com/products/Win32OpenSSL.html 2、到安装目录:C:\Program Files\OpenSSL-Win64\bin打开cmd,或配置class环境变量 3、创建密钥(zamone ......

Windows环境中使用dotnet-sdk运行打包后的.NET6.0 项目WebApi程序

去官网下载Windows平台下的SDK并安装,与开发环境对应的版本【我的程序为.NET6.0】:https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/sdk-6.0.417-windows-x64-installer 在开发好的程序 ......
dotnet-sdk Windows 环境 程序 项目

.Net6 Unable to configure HTTPS endpoint. No server certificate was spec 开发者证书过期或无效

1.删除无效的证书 右键都删除 2.cmd窗口输入以下命令 dotnet dev-certs https dotnet dev certs https--trust 3.附其他 dotnet dev-certs https --clean 清理开发人员证书命令 ......

.NET6+MQTT实战(1)MQTT与物联网

1.什么是MQTT? MQTT是 Message Queuing Telemetry Transport 的缩写,消息队列遥测传输协议,是一种基于发布/订阅模式的“轻量级”通讯协议,该协议构建于TCP/IP协议上。 特点:轻量、基于发布/订阅、进行报文封装之后通过TCP/IP协议(应用层协议) Ra ......
MQTT 实战 NET6 NET

Asp.net core Net6.0 Webapi 项目如何优雅地使用内存缓存

前言 缓存是提升程序性能必不可少的方法,Asp.net core 支持多级缓存配置,主要有客户端缓存、服务器端缓存,内存缓存和分布式缓存等。其中客户端缓和服务器端缓存在使用上都有比较大的限制,而内存缓和分布式缓存则比较灵活。 内存缓存就是一种把缓存数据放到应用程序内存中的机制。 本篇主要讲解在 as ......
缓存 内存 项目 Webapi core

.net6 webapi Swagger显示控制器为版本及接口注释

1.安装Nuget包:Swashbuckle.AspNetCore 2.使用Swagger中间件 builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(option =>{ //要启用swagger版本控 ......
注释 控制器 接口 Swagger 版本

.net6 winform项目 添加webapi

默认创建.net6winform项目时,框架只有下面两个 剩下的一个通过编辑项目文件 添加截图的代码 <!--winform项目添加AspNetCore SDK --><ItemGroup><FrameworkReference Include="Microsoft.AspNetCore.App" ......
winform 项目 webapi net6 net

.net6 windows服务发布命令

安装.bat 内容 set serviceName= CallServer set serviceFilePath= %~dp0\CallServer.exe set serviceDescription= 分诊呼叫服务 sc.exe create %serviceName% BinPath= %s ......
命令 windows net6 net

信创麒麟V10 .NET6部署

1.看CPU类型,我的是AMD64,所以需要先下载AMD的包 https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.320-linux-arm64-binaries 2.解压 mkdir -p /home/dotne ......
NET6 V10 NET 10

Scope api1 not found in store. IdentityServer4.Validation.TokenRequestValidator: Error: Invalid scopes requested

看明白了这个报错,说是scope api在授权服务器没有定义,但是一直不知道哪出错,我寻思也定义了这个资源来着 但其实并没有,说的是scope不是说的resource,所以需要再定义一个Scope ......

identityserver4 刷新token接口返回空

如题, 查看日志发现错误信息: No signing credential for algorithms (rs256) registered 而客户端的配置里的“身份令牌算法”没有rs256 于是加上就ok了。 ......

基于.net6.0 Fast.ORM 已全面支持AOT编译 所有Api均测试通过

Fast Framework 作者 Mr-zhong 代码改变世界.... 一、前言 Fast Framework 基于NET6.0 封装的轻量级 ORM 框架 支持多种数据库 SqlServer Oracle MySql PostgreSql Sqlite 优点: 体积小、原生支持微软特性、流畅A ......
net6 Fast net AOT Api

IdentityServer4: 使用固定证书

IdentityServer4: 使用固定证书 目录 固定证书 简介 生产环境 生成证书 下载 OpenSSL 工具 设置环境变量 生成 KEY 合并成.pfx 文件 使用证书 配置证书 加载证书 验证 AccessToken 固定证书 本节可基于 IdentityServer4: 配置项持久化 一 ......
IdentityServer4 IdentityServer 证书

IdentityServer4: 配置项持久化

IdentityServer4: 配置项持久化 目录 IdentityServer4 配置项持久化 创建 IdentityServer4 项目 添加依赖包 添加 Quickstart UI 数据库迁移 ConfigurationDbContext PersistedGrantDbContext 查看 ......
IdentityServer4 IdentityServer

IdentityServer4: 集成 AspNetCore Identity 框架

IdentityServer4: 集成 AspNetCore Identity 框架 目录 IdentityServer4 集成 AspNetCore Identity 框架 新增依赖包 集成 AspNetIdentity 代码 迁移 AspNetIdentity 数据库 生成用户信息 修改 Ide ......

IdentityServer4:密码模式

IdentityServer4:密码模式 目录 IdentityServer4:密码授权模式 Api 资源项目 创建项目 依赖包 添加认证方案 添加 Api 认证服务器 创建项目 依赖包 配置 IdentityServer4 集成 IdentityServer4 密码模式客户端 创建项目 依赖包 P ......

IdentityServer4:简化(隐式)模式

IdentityServer4:简化(隐式)模式 目录 IdentityServer4:简化(隐式)模式 Api 资源项目 创建项目 依赖包 添加认证方案 添加 Api 认证服务器 创建项目 依赖包 配置 IdentityServer4 集成 IdentityServer4 添加 IdentityS ......
IdentityServer4 IdentityServer 模式

IdentityServer4:授权码模式

IdentityServer4:授权码模式 目录 IdentityServer4:授权码模式 Api 资源项目 创建项目 依赖包 添加认证方案 添加 Api 修改 Index 视图 添加 ApiData 视图 添加 UserInfo 视图 认证服务器 创建项目 依赖包 配置 IdentityServ ......
IdentityServer4 IdentityServer 模式

IdentityServer4:客户端模式

IdentityServer4:客户端模式 目录 IdentityServer4:客户端模式 Api 资源项目 创建项目 依赖包 添加认证方案 添加 Api 认证服务器 创建项目 依赖包 配置 IdentityServer4 集成 IdentityServer4 客户端模式客户端 创建项目 依赖包 ......

IdentityServer4

第一步:创建 NetCore 项目 第二步:安装 Nuget 包 IdentityServer4IdentityServer4.AspNetIdentityIdentityServer4.EntityFrameworkMicrosoft.AspNetCore.Identity.EntityFrame ......
IdentityServer4 IdentityServer

.NetCore Ocelot

参考:https://blog.51cto.com/u_13746169/5876532 Nuget包: OcelotOcelot.Provider.ConsulOcelot.Provider.PollyOcelot.Cache.CacheManager 程序包管理器控制台CLIInstall-Pa ......
NetCore Ocelot

.NET6中的await原理浅析

前言 看过不少关于 await 的原理的文章,也知道背后是编译器给转成了状态机实现的,但是具体是怎么完成的,回调又是如何衔接的,一直都没有搞清楚,这次下定决心把源码自己跑了下,终于豁然开朗了 本文的演示代码基于 VS2022 + .NET 6 示例 public class Program { st ......
原理 await NET6 NET
共270篇  :1/9页 首页上一页1下一页尾页