Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Created November 12, 2016 20:59
Show Gist options
  • Save johnmmoss/78da13b74e85a55d2e03fedea661b7ad to your computer and use it in GitHub Desktop.
Save johnmmoss/78da13b74e85a55d2e03fedea661b7ad to your computer and use it in GitHub Desktop.
Sample UserManager
public class UserManager : UserManager<User>
{
public UserManager(IUserStore<User> store)
: base(store)
{
}
// This method is called by Owin therefore best place to configure your User Manager
public static UserManager Create(
IdentityFactoryOptions<UserManager> options, IOwinContext context)
{
var manager = new UserManager(
new UserStore<User>(context.Get<TimesheetsContext>()));
// Configure your manager ...
return manager;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment