|
|
@ -1,10 +1,8 @@ |
|
|
|
using Microsoft.AspNetCore.Authorization; |
|
|
|
using Swashbuckle.AspNetCore.Swagger; |
|
|
|
using Swashbuckle.AspNetCore.SwaggerGen; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.Filters |
|
|
|
{ |
|
|
@ -21,11 +19,13 @@ namespace Microsoft.eShopOnContainers.Services.Marketing.API.Infrastructure.Filt |
|
|
|
operation.Responses.Add("401", new Response { Description = "Unauthorized" }); |
|
|
|
operation.Responses.Add("403", new Response { Description = "Forbidden" }); |
|
|
|
|
|
|
|
operation.Security = new List<IDictionary<string, IEnumerable<string>>>(); |
|
|
|
operation.Security.Add(new Dictionary<string, IEnumerable<string>> |
|
|
|
operation.Security = new List<IDictionary<string, IEnumerable<string>>> |
|
|
|
{ |
|
|
|
{ "oauth2", new [] { "marketingapi" } } |
|
|
|
}); |
|
|
|
new Dictionary<string, IEnumerable<string>> |
|
|
|
{ |
|
|
|
{ "oauth2", new [] { "marketingapi" } } |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
} |