
IdentityServer4
写码的猿是攻城狮
此人很懒!
展开
-
identityserver4 使用自签名证书,client和API访问提示证书无效的解决方法
identityserver4 使用自签名证书,client和API访问提示错误:The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot,查阅了很多资料,得知须得在HttpClient中将ServerCertificateCustomValidationCallback属性设为true。原创 2022-09-02 08:20:11 · 2276 阅读 · 0 评论 -
控制台程序httpclient使用IdentityServer4的授权码模式获取token
控制台程序httpclient使用IdentityServer4的授权码模式获取token获取token代码拿到token后,访问API系统使用IdentityServer4做鉴权,客户端是WPF,打算使用httpclient获取授权码模式的token,现做一个控制台测试例子。获取token代码新建一个AuthorizationCodeLogin类using IdentityModel;using IdentityModel.Client;using Microsoft.Net.Http.Hea原创 2022-03-28 11:14:12 · 1366 阅读 · 0 评论