为Identityserver3禁用SSL [英] disabling SSL for identityserver3
本文介绍了为Identityserver3禁用SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用此框架的新手.
我有一个OAuth客户端,并且正在运行IdentityServer3控制台应用程序.
I have an OAuth client and I am running IdentityServer3 console app.
我收到一个错误消息,说需要SSL.
I get an error to my client saying SSL is required.
是否有一种方法可以(暂时)从IdentityServer3禁用SSL,以便我可以开发/编码/测试我的东西.
Is there a way to disable the SSL from IdentityServer3 (temporarily) so i can develop/code/test my stuff.
这将非常方便,因为其他开发人员也正在为此进行工作.
It would be handy as other developers are working on this as well.
我已将https的基点更改为http,但是仍然需要SSL错误.
I have changed the base-points fro https to http but still SSL required error.
谢谢
这是我的服务器代码":
this is my 'server code':
private static string ServerURL = "http://localhost:44335";
static void Main(string[] args)
{
System.Console.Title = "IdentityServer3";
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.LiterateConsole()
.CreateLogger();
var webApp = WebApp.Start( ServerURL, app =>
{
app.UseIdentityServer();
});
System.Console.WriteLine("identityserver up and running....");
while(true)
{
var key = System.Console.ReadKey(true);
if (key.Key == ConsoleKey.B)
{
Process.Start(ServerURL + "/core");
}
else
{
break;
}
}
webApp.Dispose();
}
推荐答案
在options类上将'RequireSsl'设置为false.
Set 'RequireSsl' to false on the options class.
作为示例.
这篇关于为Identityserver3禁用SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文