File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -119,20 +119,15 @@ public void ConfigureServices(IServiceCollection services)
119119 {
120120 //use quartz to prune old SAML messages every 14 days.
121121 builder . PruneSamlMessages ( ) ;
122+ builder . PruneSamlArtifacts ( ) ;
122123
123124 //Already added the DbContext above
124125 builder . UseSamlEntityFrameworkCore ( )
125- . AddSamlMessageDbContext ( optionsBuilder =>
126- {
127- //Configure the database provider to use.
128- optionsBuilder . UseSqlServer ( defaultConnectionString , x => x . MigrationsAssembly ( typeof ( Startup ) . Assembly . FullName ) ) ;
129- } )
130- . AddSamlConfigurationDbContext ( optionsBuilder =>
131- {
132- //Configure the database provider to use.
133- optionsBuilder . UseSqlServer ( defaultConnectionString ,
134- x => x . MigrationsAssembly ( typeof ( Startup ) . Assembly . FullName ) ) ;
135- } ) ;
126+ . AddSamlDbContexts ( optionsBuilder =>
127+ {
128+ //Configure the database provider to use.
129+ optionsBuilder . UseSqlServer ( defaultConnectionString , x => x . MigrationsAssembly ( typeof ( Startup ) . Assembly . FullName ) ) ;
130+ } ) ;
136131
137132 builder . ConfigureSamlOpenIddictServerOptions ( serverOptions =>
138133 {
You can’t perform that action at this time.
0 commit comments