解决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
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 的通讯。
解决 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>
解决无法安装identityserver4 模板项目的办法就是指定版本号
dotnet new --install IdentityServer4.Templates::4.0.1