Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/Startup.cs Secret

Created Aug 5, 2018
Embed
What would you like to do?
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddIdentityServer()
.AddDeveloperSigningCredential()
.AddInMemoryApiResources(Configuration.ApiResources)
.AddInMemoryClients(Configuration.Clients);
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseIdentityServer();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.