How to remove Top level document security
See original GitHub issueI’m adding JWT authorization to the document:
document.AddSecurity("JWT",
Enumerable.Empty<string>(),
new OpenApiSecurityScheme {
Type = OpenApiSecuritySchemeType.ApiKey,
Name = "Authorization",
In = OpenApiSecurityApiKeyLocation.Header,
Description = "Type into the textbox: Bearer {your JWT token}."
});
document.OperationProcessors.Add(
new AspNetCoreOperationSecurityScopeProcessor("JWT")
//new OperationSecurityScopeProcessor("JWT")
);
and for some reason in the swagger.json it appends the security to the whole document. Ex:
...
"security": [
{
"JWT": []
}
]
is there a way to remove that section?
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (10 by maintainers)
Top Results From Across the Web
Restrict access to documents with Information Rights ...
Use a different Windows user account to rights-manage files · Open the document, worksheet, or presentation. · Select the File tab. · On...
Read more >Setting up security policies for PDFs
In Acrobat, choose Tools > Protect > More Options > Manage Security Policies. · Click New. · Select Use Public Key Certificates, and...
Read more >Document level security | Elasticsearch Guide [8.9]
Set up a cluster for high availability ... To enable document level security, you use a query to specify the documents that each...
Read more >Security (Access) Basics
Document -level security can only be set by someone in a cabinet who ... Remove other users from the Access List of a...
Read more >Establishing Windows File and Folder Level Permissions
Select the Security tab. The top portion of the dialog box lists the users and/or groups that have access to the file or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And now i got it. Here is the final code:
Created PR: https://github.com/RicoSuter/NSwag/pull/2305 What do you think?