Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev committed Nov 4, 2024
1 parent 55bcad2 commit 20d006e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/VirtoCommerce.Platform.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,17 @@ public void ConfigureServices(IServiceCollection services)
// Register the OpenIddict services.
// Note: use the generic overload if you need
// to replace the default OpenIddict entities.
services.AddOpenIddict()
.AddCore(coreBuilder =>
services.AddOpenIddict(openIddictBuilder =>
{
openIddictBuilder.AddCore(coreBuilder =>
{
coreBuilder.UseEntityFrameworkCore(efBuilder =>
{
efBuilder.UseDbContext<SecurityDbContext>();
});
})
.AddServer(serverBuilder =>
});
openIddictBuilder.AddServer(serverBuilder =>
{
// Register the ASP.NET Core MVC binder used by OpenIddict.
// Note: if you don't call this method, you won't be able to
Expand Down Expand Up @@ -426,6 +428,7 @@ public void ConfigureServices(IServiceCollection services)
serverBuilder.AddSigningCertificate(privateKey);
serverBuilder.AddEncryptionCertificate(privateKey);
});
});

services.Configure<IdentityOptions>(Configuration.GetSection("IdentityOptions"));
services.Configure<PasswordOptionsExtended>(Configuration.GetSection("IdentityOptions:Password"));
Expand Down

0 comments on commit 20d006e

Please sign in to comment.