Blazor WASM(客户端)设置证书

时间:2020-10-19 17:10:43

标签: blazor blazor-client-side blazor-webassembly asp.net5

在身份验证的Blazor服务器端,我可以编写

services.AddAuthentication().AddOpenIdConnect(options =>
                {
 options.BackchannelHttpHandler = new HttpClientHandler
                    {
                        ServerCertificateCustomValidationCallback = (sender, cert, chain, policyErrors) =>
                        {                                
                                return true;                                
                        }
                    };
});

如何在Blazor WASM中设置ServerCertificateCustomValidationCallback?

0 个答案:

没有答案