Add generality security decorator instead of @ApiBearerAuth() @ApiOAuth2Auth()
See original GitHub issueI’m submitting a…
[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
We are trying to migrate our old express & swagger application to Nest. The app have security parameter for own rule that is not bearer and oauth2. But there are only @ApiBearerAuth() @ApiOAuth2Auth().
Expected behavior
I guess we can use a generality security decorator. Example:
@ApiSecurity(securityDefinitionName)
@Get()
async findAll() {
Environment
Nest version: 5.3.7
@nestjs/swagger: 2.5.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Security - OpenAPI | NestJS - A progressive Node.js ...
Security. To define which security mechanisms should be used for a specific operation, use the @ApiSecurity() decorator.
Read more >How to globally apply Swagger UI's @ApiBearerAuth ...
I am working on a nestJS based api, and I am using Swagger UI documentation. I want keep the functionality of @ApiBearerAuth() for...
Read more >How to use the @nestjs/swagger.ApiForbiddenResponse ...
To help you get started, we've selected a few @nestjs/swagger examples, based on popular ways it is used in public projects. Secure your...
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
4.0.0 has been published
@ktanakaj PR has been opened. Hopefully it gets reviewed and merged soon