I created a new Project from the VS 2017 template (web application with individual user accounts).
This adds the ASP.NET Core Identity as default UI (using the UI from a nuget).
services
.AddDefaultIdentity<IdentityUser>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();
With this nuget everything works as expected. Especially the loginPartial which shows the username once a user has logged in and shows the Login Button right after clicking logout.
Once I scaffold the layout and apply the changes (according to the guide in the docs) the Logout does not remove the name and show the login button anymore (right after the click on logout). The change only happens when I click on a link to another page.
Of course I changed the configuration (according to the guide):
services
.AddIdentity<Data.Entities.ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders();
Does anyone know how to fix this or what the difference is between the DefaultUI and the scaffolded classes?