mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-03-12 04:35:27 -07:00
fix: fix swagger api key auth (#4483) [no ci]
This commit is contained in:
parent
cc55d3fcf4
commit
32ee4e88ec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user