如何为Identityserver4禁用SSL [英] How to disabling SSL for identityserver4

查看:868
本文介绍了如何为Identityserver4禁用SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于测试目的,我需要为DotNet Core 2中的IdentityServer4禁用SSL / TSL。我已经看到此链接:为Identityserver3禁用SSL ,但我在版本4中需要它。 p>

I need to disable SSL/TSL for IdentityServer4 in DotNet Core 2 for test purpose. I have seen this link : disabling SSL for identityserver3 but I need it in version 4.

推荐答案

借助@Hbert Jarema的线索,我能够在文档中找到它:

With the clue from @Hbert Jarema I was able to find it in the documentation:

services.AddAuthentication()
    .AddOpenIdConnect(options =>
    {
        options.RequireHttpsMetadata = false;
    });

这篇关于如何为Identityserver4禁用SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆