We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8cdfa commit 51386a4Copy full SHA for 51386a4
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup/Startup.cs
@@ -64,6 +64,13 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
64
{
65
options.SwaggerDoc("v1", new Info { Title = "AbpProjectName API", Version = "v1" });
66
options.DocInclusionPredicate((docName, description) => true);
67
+ options.AddSecurityDefinition("bearerAuth", new ApiKeyScheme()
68
+ {
69
+ Description = "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"",
70
+ Name = "Authorization",
71
+ In = "header",
72
+ Type = "apiKey"
73
+ });
74
});
75
76
//Configure Abp and Dependency Injection
0 commit comments