more references.
This commit is contained in:
16
Startup.cs
16
Startup.cs
@ -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"];
|
||||
|
Reference in New Issue
Block a user