We have created a new ASP.NET 4.5.1 project as follows:
- Visual Studio 2013
- New Project
- Visual C#
- Web
- ASP.NET Web Application
- Web API
- Change Authentication
- Individual User Accounts
- Okay > Okay
In the solution explorer > App_Start > Startup.Auth.cs file there is the following code which configures ASP.NET Indentity. How do we change the database in which the UserManager stores user data?
static Startup()
{
    PublicClientId = "self";
    UserManagerFactory = () => new UserManager<IdentityUser>(new UserStore<IdentityUser>());
    OAuthOptions = new OAuthAuthorizationServerOptions
    {
        TokenEndpointPath = new PathString("/Token"),
        Provider = new ApplicationOAuthProvider(PublicClientId, UserManagerFactory),
        AuthorizeEndpointPath = new PathString("/api/Account/ExternalLogin"),
        AccessTokenExpireTimeSpan = TimeSpan.FromDays(14),
        AllowInsecureHttp = true
    };
}
 
    