ASP.NET Core 2.0 introduces a new model for authentication which requires some changes when upgrading your existing ASP.NET Core 1.x applications to 2.0.
In ASP.NET Core 1.x, every auth scheme had its own middleware, and startup looked something like this:
In ASP.NET Core 2.0, there is now only a single Authentication middleware, and each authentication scheme is registered during ConfigureServices() instead of during Configure():
More information: https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/identity-2x