1
0
mirror of https://github.com/Ombi-app/Ombi.git synced 2025-03-12 04:35:27 -07:00

fix: fix swagger api key auth () [no ci]

This commit is contained in:
Qiming Chen 2022-01-31 11:21:56 -08:00 committed by GitHub
parent cc55d3fcf4
commit 32ee4e88ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,6 +41,21 @@ namespace Ombi
Type = SecuritySchemeType.ApiKey
});
c.AddSecurityRequirement(new OpenApiSecurityRequirement
{
{
new OpenApiSecurityScheme
{
Reference = new OpenApiReference
{
Type = ReferenceType.SecurityScheme,
Id = "ApiKey"
}
},
new string[] {}
}
});
c.CustomSchemaIds(x => x.FullName);
try