Weiter zu Register the authentication middleware - If this does not make sense to you, I strongly suggest that your read ASP.NET Core 2.0 Authentication .