I created a new asp.net core web application which uses individual user accounts. And I want to allow users to sing-in using their Microsoft accounts. so i tried following this tutorial https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/microsoft-logins?view=aspnetcore-2.2.. but when i tried adding this inside our startup.cs :-
services.AddDefaultIdentity<IdentityUser>()
.AddDefaultUI(UIFramework.Bootstrap4)
.AddEntityFrameworkStores<ApplicationDbContext>();
services.AddAuthentication().AddMicrosoftAccount(microsoftOptions =>
{
microsoftOptions.ClientId = Configuration["Authentication:Microsoft:ApplicationId"];
microsoftOptions.ClientSecret = Configuration["Authentication:Microsoft:Password"];
});
I got this error:-
Error CS0103 The name 'UIFramework' does not exist in the current context
so i am not sure how i can add a referecne to UIFramework?
thanks
UIFrameworkwas added in 2.2. - Kirk Larkin