-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Open
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc
Description
Description
I don't see OpenApiSecurityScheme which allows Swashbuckle.AspNetCore.SwaggerUI interactive documentation to add authentication token after logging in to use protected resources. Previously:
builder.Services.AddSwaggerGen(c =>
{
c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
{
Scheme = "Bearer",
In = ParameterLocation.Header,
Description = "Please insert JWT with Bearer into field",
Name = "Authorization",
Type = SecuritySchemeType.ApiKey
});
}
Page URL
Content source URL
Document ID
27bad30c-e0b4-10fb-b202-a29d4f8fad24
Platform Id
11e029f8-4c25-d943-fe65-31bfcaf35e2b
Article author
Metadata
- ID: 27bad30c-e0b4-10fb-b202-a29d4f8fad24
- PlatformId: 11e029f8-4c25-d943-fe65-31bfcaf35e2b
- Service: aspnet-core
- Sub-service: fundamentals
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcfundamentals/subsvc