This commit is contained in:
parent
e9ffe514dd
commit
7c67fa7de0
@ -12,6 +12,7 @@ using Microsoft.Extensions.DependencyInjection;
|
|||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using Microsoft.IdentityModel.Tokens;
|
using Microsoft.IdentityModel.Tokens;
|
||||||
using NSwag.Generation.Processors.Security;
|
using NSwag.Generation.Processors.Security;
|
||||||
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Birdmap.API
|
namespace Birdmap.API
|
||||||
@ -71,7 +72,7 @@ namespace Birdmap.API
|
|||||||
{
|
{
|
||||||
opt.Title = "Birdmap";
|
opt.Title = "Birdmap";
|
||||||
opt.OperationProcessors.Add(new OperationSecurityScopeProcessor("Jwt Token"));
|
opt.OperationProcessors.Add(new OperationSecurityScopeProcessor("Jwt Token"));
|
||||||
opt.AddSecurity("Jwt Token", new string[] { },
|
opt.AddSecurity("Jwt Token", Array.Empty<string>(),
|
||||||
new NSwag.OpenApiSecurityScheme
|
new NSwag.OpenApiSecurityScheme
|
||||||
{
|
{
|
||||||
Type = NSwag.OpenApiSecuritySchemeType.ApiKey,
|
Type = NSwag.OpenApiSecuritySchemeType.ApiKey,
|
||||||
|
Loading…
Reference in New Issue
Block a user