随笔分类 -  identityServer4

摘要:1、自己生成证书,需要用到openssl,官方下载地址 https://slproweb.com/products/Win32OpenSSL.html 2、到安装目录:C:\Program Files\OpenSSL-Win64\bin打开cmd,或配置class环境变量 3、创建密钥(zamone 阅读全文
posted @ 2024-01-02 10:57 hello_stone 阅读(43) 评论(0) 推荐(0) 编辑
摘要:如题, 查看日志发现错误信息: No signing credential for algorithms (rs256) registered 而客户端的配置里的“身份令牌算法”没有rs256 于是加上就ok了。 阅读全文
posted @ 2023-11-29 11:09 hello_stone 阅读(27) 评论(0) 推荐(0) 编辑
摘要:客户端代码 JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); services.AddAuthentication(options => { options.DefaultScheme = CookieAuthentication 阅读全文
posted @ 2023-01-30 15:03 hello_stone 阅读(83) 评论(0) 推荐(0) 编辑
摘要:问题: 部署identityserver4后,在view页面添加 行内css属性,或在view页面写js,运行时都会报错: Refused to apply inline style because it violates the following Content Security Policy 阅读全文
posted @ 2022-12-01 17:33 hello_stone 阅读(1184) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示