File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed
Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ namespace eFormAPI.Web;
6666using Services . Mailing . EmailService ;
6767using Services . Mailing . EmailTags ;
6868using Microsoft . Extensions . Hosting ;
69- using Microsoft . OpenApi . Models ;
69+ using Microsoft . OpenApi ;
7070using System . IO ;
7171using Microsoft . Extensions . PlatformAbstractions ;
7272using Microting . EformAngularFrontendBase . Infrastructure . Data ;
@@ -294,23 +294,9 @@ public void ConfigureServices(IServiceCollection services)
294294 Scheme = "Bearer"
295295 } ) ;
296296
297- c . AddSecurityRequirement ( new OpenApiSecurityRequirement ( )
297+ c . AddSecurityRequirement ( document => new OpenApiSecurityRequirement ( )
298298 {
299- {
300- new OpenApiSecurityScheme
301- {
302- Reference = new OpenApiReference
303- {
304- Type = ReferenceType . SecurityScheme ,
305- Id = "Bearer"
306- } ,
307- Scheme = "oauth2" ,
308- Name = "Bearer" ,
309- In = ParameterLocation . Header
310-
311- } ,
312- new List < string > ( )
313- }
299+ [ new OpenApiSecuritySchemeReference ( "Bearer" , document ) ] = new List < string > ( )
314300 } ) ;
315301 } ) ;
316302 try
Original file line number Diff line number Diff line change 5252 <PackageReference Include =" HtmlToOpenXml.dll" Version =" 3.2.8" />
5353 <PackageReference Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" 10.0.0" />
5454 <PackageReference Include =" Microsoft.AspNetCore.Identity.UI" Version =" 10.0.0" />
55- <PackageReference Include =" Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version =" 10 .0.0 " />
56- <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 10 .0.0 " />
55+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version =" 9 .0.11 " />
56+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 9 .0.11 " />
5757 <PackageReference Include =" Microsoft.Extensions.PlatformAbstractions" Version =" 1.1.0" />
5858 <PackageReference Include =" Microting.eForm" Version =" 9.0.72" />
5959 <PackageReference Include =" Microting.EformAngularFrontendBase" Version =" 9.0.59" />
You can’t perform that action at this time.
0 commit comments