Created
February 21, 2021 12:15
-
-
Save fmshk97/f886a964bd8ae4363bf07018396c8ed0 to your computer and use it in GitHub Desktop.
Register Identity framework in application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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