我有一个使用“ password”授予类型的Windows应用程序。它可以在没有SELECT
COUNT(*) as "number of orders",
sum(ol.quantity * ol.amount) as "line total",
to_timestamp(floor((extract('epoch' from "ordertimestamp") / 600 )) * 600) AT TIME ZONE 'UTC' as interval_alias
FROM "Order" as o
inner join "OrderLine" as ol on o.orderid = ol.orderid
GROUP BY interval_alias;
的情况下向Identityserver4进行身份验证,但不能通过SSL
进行身份验证。问题是它给出了错误:
SSL
我从邮递员那里尝试了它,但是它起作用了,但是在我的Windows应用程序中却没有。下面是代码:
The underlying connection was closed: An unexpected error occurred on a send
下面也是我尝试过的另一个代码,但是它不起作用:
var tokenClient = new TokenClient($"{IdentityServer}/connect/token", Constants.ClientId, Constants.ClientSecret);
var tokenResponseTask = tokenClient.RequestResourceOwnerPasswordAsync(username, password, Constants.Scope);
tokenResponseTask.Wait();
return tokenResponseTask.Result;
答案 0 :(得分:0)
SSL握手失败时,通常会出现“底层连接已关闭”错误。 SSL握手失败通常与相关的SSL证书以及该证书是否受信任有关。
检查...
希望这可以帮助您进行有用的调查。
答案 1 :(得分:0)
最后,我可以通过以下链接找到解决方案:
Authentication failed because remote party has closed the transport stream