-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove Top level document security #2304
Comments
I think that this "security" section is always needed if "securitySchemes" are defined, no? |
Did you add AspNetCoreOperationSecurityScopeProcessor? |
I think you can also add the appender instead of AddSecurity without scopeNames
|
I changed the code to:
and still getting the same issue. |
Remove the second enumerable parameter |
you mean like this?
|
Yep, this way “security” should not be generated (not sure if this is correct though) |
Yes you are right but now is not generating security for controllers that require authentication |
And now i got it. Here is the final code:
|
And this works as expected? |
yes, but i have a warning because the overload is obsolete. |
Ok, then both overloads are valid and obsolete has to be removed, right? |
Will create a pr for review tomorrow |
yes that's right. thank you so much for your help. |
Created PR: #2305 |
I'm adding JWT authorization to the document:
and for some reason in the swagger.json it appends the security to the whole document. Ex:
is there a way to remove that section?
The text was updated successfully, but these errors were encountered: