Skip to content

Instantly share code, notes, and snippets.

@fmshk97
Created February 21, 2021 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmshk97/f886a964bd8ae4363bf07018396c8ed0 to your computer and use it in GitHub Desktop.
Save fmshk97/f886a964bd8ae4363bf07018396c8ed0 to your computer and use it in GitHub Desktop.
Register Identity framework in application
public void ConfigureServices(IServiceCollection services)
{
services.AddIdentityCore<AppUser>(options => {
options.User.AllowedUserNameCharacters = "hojn._";
});
services.AddScoped<IUserStore<AppUser>, AppUserStore>();
services.AddControllers();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment