more references.

This commit is contained in:
Paul Schneider
2021-04-10 14:11:09 +01:00
parent 5b6d74d8ee
commit cede04a33e
179 changed files with 56679 additions and 19289 deletions

View File

@ -34,13 +34,22 @@ namespace nuget_host
// if you are using API resources, you can specify the name here
options.Audience = "packages";
});
});
services.AddMvc();
services.AddDataProtection();
services.AddIdentityServer()
.AddInMemoryClients(Config.Clients)
.AddInMemoryIdentityResources(Config.IdentityResources)
.AddInMemoryApiResources(Config.ApiResources)
.AddDeveloperSigningCredential()
.AddTestUsers(Config.TestUsers);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -48,13 +57,12 @@ namespace nuget_host
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseDeveloperExceptionPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
ExternalUrl = Configuration["NuGet:ExternalUrl"];
SourceDir = Configuration["NuGet:SourceDir"];
RootApiKeySecret = Configuration["RootApiKeySecret"];