From 33638e1b6820f706c315558a9e040687b2422db7 Mon Sep 17 00:00:00 2001 From: SunriseM Date: Sat, 3 Oct 2020 12:38:01 -0400 Subject: [PATCH] Add ProfileService to Startup services --- src/Startup.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Startup.cs b/src/Startup.cs index b2bf0be..9aea9e8 100644 --- a/src/Startup.cs +++ b/src/Startup.cs @@ -8,6 +8,8 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using IdentityServer4.Services; +using IdentityServer.Services; namespace SteamOpenIdConnectProvider { @@ -26,6 +28,8 @@ namespace SteamOpenIdConnectProvider services.AddControllers() .AddNewtonsoftJson() .SetCompatibilityVersion(CompatibilityVersion.Version_3_0); + + services.AddSingleton(Configuration); services.AddDbContext(options => options.UseInMemoryDatabase("default")); @@ -51,6 +55,8 @@ namespace SteamOpenIdConnectProvider .AddInMemoryPersistedGrants() .AddDeveloperSigningCredential(true) .AddInMemoryIdentityResources(IdentityServerConfig.GetIdentityResources()); + + services.AddScoped(); services.AddAuthentication() .AddCookie(options =>