@Authorization is not supported in @Api annotation
See original GitHub issueHello,
After changes which fixes bug https://github.com/springfox/springfox/issues/2194 it is required to add following parameter
authorizations = @Authorization(value = "xxx")
to @ApiOperation or @Api annotations.
As it is working correctly when placed in @ApiOperation, it is not working with @Api. According to documentation, it should be working with both annotations. Because of it, I’d have to put @ApiOperation to couple dozens of endpoints, instead of on couple of top level interfaces.
This peace of code is only parsing @ApiOperation:
springfox.documentation.swagger.readers.operation.OperationAuthReader#apply
Version: 2.9.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Swagger basic authorization not working with @Api annotation
But when used with @Apioperation it is working fine . I want to apply basic authorization at controller level rather than at method...
Read more >Authorization of Web Endpoints - Quarkus
The /subject/denied endpoint disallows any access regardless of whether the call is authenticated by specifying the @DenyAll annotation. Please refer to the ...
Read more >Security Annotations and Authorization in GlassFish ... - Oracle
This article discusses the security annotations defined in JSR 250 and demonstrates how to use them for securing an application with authentication and ......
Read more >API Keys - Swagger
API Keys. Some APIs use API keys for authorization. An API key is a token that ... The key name ApiKeyAuth is an...
Read more >Core Services API Reference - Developers | SAS
404, 16304, The annotation was not found for specified annotation ID. ... Annotations. Contains the operations to support annotations.
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 FreeTop 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
Top GitHub Comments
Anyone reading this in 2020?
This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.