chenxin's blog
多线程调试断点根据线程id来过滤,是一个高效的调试方式,避免端点的时候线程变来变去问题,算是解决了一个调试痛点。
2022-06-14 18:38

解决dockerfile 中使用 RUN ls -l 等命令无法打印命令输出问题。

https://stackoverflow.com/questions/49787780/docker-run-ls-shows-cached-files

解决dockerfile中执行命令无输出内容的问题。

第一种解决方案

docker build . --progress=plain --no-cache

第二种解决方案

设置环境变量

set DOCKER_BUILDKIT=0

2022-06-13 17:40

identity server 4 back channel logout(反向通道的注销)方式使用

反向通道单点登出是 identity server 端发起对 app client 客户端的指定登出接口的调用,并不是浏览器端iframe发过来的请求进行登出,因此需要写后台代码进行登出。

front channel logout 是identity server 那边登出成功后,生成的响应页面中包含一个iframe,那个iframe 引用 app client 端中的Front Channel Logout 接口地址,然后进行直接登出。

https://ashend.medium.com/openid-connect-backchannel-logout-144a3198d2a

简单总结来说: back channel logout 是 服务端(identity server 认证服务器)和服务端(app client 接入 identity server 的客户端应用)之间的通信,而 front channel logout 是identity server 的响应页面中直接嵌入iframe 去访问 app client 的登出页面地址,是浏览器端和 app client 的通讯。

2022-06-13 10:47
identityserver4数据持久化
2022-06-12 20:18
消息队列除了可用于异步处理,流量削峰,还可以用于应用解偶
2022-06-12 19:42
有时候发现用户无法执行命令是可以查看是否指定了默认shell程序
2022-06-10 19:57

解决 IIS 下部署 react 单页应用,刷新浏览器后出现404问题。

解决方案如下

1. 安装 IIS URL Rewrite 模块。

2 iis 设置index.html 为默认页面

3 web.config 文件中增加 以下配置。

"1.0"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="React Routes" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
                    conditions>
                    <action type="Rewrite" url="/" />
                rule>
            rules>
        rewrite>
    system.webServer>
configuration>
2022-06-10 10:59

解决无法安装identityserver4 模板项目的办法就是指定版本号

dotnet new --install IdentityServer4.Templates::4.0.1

https://www.nuget.org/packages/IdentityServer4.Templates

2022-06-09 21:30
{{item.shareTime}}
首页 上一页 26 27 28 29 30 下一页 末页 共41页
正在加载,请稍后... 已经到底啦~~~
文章归档 网站地图 闽ICP备2020021271号-1 百度统计