mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-07-14 03:23:48 +08:00
🔄refactor: 使用OpenIddict 重构Identity
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
||||
|
||||
|
||||
using System;
|
||||
using System;
|
||||
using Autofac.Extensions.DependencyInjection;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
@@ -16,7 +12,7 @@ namespace OpenAuth.IdentityServer
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.Title = "IdentityServer4";
|
||||
Console.Title = "OpenAuth.IdentityServer (OpenIddict)";
|
||||
|
||||
CreateWebHostBuilder(args).Build().Run();
|
||||
}
|
||||
@@ -24,7 +20,7 @@ namespace OpenAuth.IdentityServer
|
||||
public static IHostBuilder CreateWebHostBuilder(string[] args)
|
||||
{
|
||||
return Host.CreateDefaultBuilder(args)
|
||||
.UseServiceProviderFactory(new AutofacServiceProviderFactory()) //将默认ServiceProviderFactory指定为AutofacServiceProviderFactory
|
||||
.UseServiceProviderFactory(new AutofacServiceProviderFactory())
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseUrls("http://*:12796").UseStartup<Startup>();
|
||||
@@ -40,4 +36,4 @@ namespace OpenAuth.IdentityServer
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user