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 @@ -123,20 +123,15 @@ public void ConfigureServices(IServiceCollection services)
123123 {
124124 //use quartz to prune old SAML messages every 14 days.
125125 builder . PruneSamlMessages ( ) ;
126+ builder . PruneSamlArtifacts ( ) ;
126127
127128 //Already added the DbContext above
128129 builder . UseSamlEntityFrameworkCore ( )
129- . AddSamlMessageDbContext ( optionsBuilder =>
130- {
131- //Configure the database provider to use.
132- optionsBuilder . UseSqlServer ( defaultConnectionString , x => x . MigrationsAssembly ( typeof ( Startup ) . Assembly . FullName ) ) ;
133- } )
134- . AddSamlConfigurationDbContext ( optionsBuilder =>
135- {
136- //Configure the database provider to use.
137- optionsBuilder . UseSqlServer ( defaultConnectionString ,
138- x => x . MigrationsAssembly ( typeof ( Startup ) . Assembly . FullName ) ) ;
139- } ) ;
130+ . AddSamlDbContexts ( optionsBuilder =>
131+ {
132+ //Configure the database provider to use.
133+ optionsBuilder . UseSqlServer ( defaultConnectionString , x => x . MigrationsAssembly ( typeof ( Startup ) . Assembly . FullName ) ) ;
134+ } ) ;
140135
141136 builder . ConfigureSamlOpenIddictServerOptions ( serverOptions =>
142137 {
You can’t perform that action at this time.
0 commit comments