The dotnet CLI includes a templating engine that makes it pretty straightforward to create your own project templates (see this blog post for a good intro).
This new repo is the home for all IdentityServer4 templates to come – right now they are pretty basic, but good enough to get you started.
The repo includes three templates right now:
dotnet new is4
Creates a minimal IdentityServer4 project without a UI and just one API and one client.
dotnet new is4ui
Adds the quickstart UI to the current project (can be combined with is4)
dotnet new is4inmem
Adds a boilerplate IdentityServer with UI, test users and sample clients and resources
See the readme for installation instructions.

Filed under: .NET Security, ASP.NET Core, IdentityServer, OAuth, OpenID Connect, WebAPI