Thank you @marcus.baker for your help!
This is the answer and also for the ones who are working with .Net Core 2.0 when trying to implement this, pay attention at the pipelines order.
app.UseAuthentication(); //need to be execued before MVC!
app.UseMvc();