You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IdentityConfigurationExtension.cs 472B

12345678910111213141516
  1. namespace Diligent.WebAPI.Host.Extensions
  2. {
  3. public static class IdentityConfigurationExtension
  4. {
  5. public static void ConfigureIdentity(this WebApplicationBuilder builder)
  6. {
  7. IServiceCollection services = builder.Services;
  8. services.AddIdentity<User, AppRole>()
  9. .AddRoles<AppRole>()
  10. .AddEntityFrameworkStores<DatabaseContext>()
  11. .AddDefaultTokenProviders();
  12. }
  13. }
  14. }