Last post Oct 26, 2018 05:38 AM by Ackerly Xu
Oct 25, 2018 04:04 AM|bumples18|LINK
I thought that I had this solved but it came back and the errors are in the IdentiyModels. It is applicationUser and any change I make on it creates a GenerateUser error. I know that this is an Owin Identity issue but can't find the answer. Here is the code.
I took this from Wingtops program which I am adapting for my use. It works on that program but not in the visual studio 2017 updates.
using static Bumples.ApplicationUserManager;
public partial class Startup
// For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301883
public void ConfigureAuth(IAppBuilder app)
// Configure the db context, user manager and signin manager to use a single instance per request
// Enable the application to use a cookie to store information for the signed in user
// and to use a cookie to temporarily store information about a user logging in with a third party login provider
// Configure the sign in cookie
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Provider = new CookieAuthenticationProvider
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>( (;) the error is the ApplicationUser.
regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
// Use a cookie to temporarily store information about a user logging in with a third party login provider
// Enables the application to temporarily store user information when they are verifying the second factor in the two-factor authentication process.
// Enables the application to remember the second login verification factor such as phone or email.
// Once you check this option, your second step of verification during the login process will be remembered on the device where you logged in from.
// This is similar to the RememberMe option when you log in.
// Uncomment the following lines to enable logging in with third party login providers
// clientId: "",
// clientSecret: "");
// consumerKey: "",
// consumerSecret: "");
// appId: "",
// appSecret: "");
ClientId = "000000000000.apps.googleusercontent.com",
ClientSecret = "00000000000"
I don't need to use google or twitter or facebook. If I take those off will that help.
Oct 26, 2018 05:38 AM|Ackerly Xu|LINK
Could you post your error message and the code which causes the error,it seems the error is not in your Startup.cs.
You could also create a identity project in your project , microsoft has a sample project in visual studio and you could refer to it.
Click Change Authentication and choose Individual User Accounts and the project will be created.