Skip to content
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

Feature request: bearer security #70

Closed
josipoviciwan opened this issue Dec 12, 2022 · 5 comments
Closed

Feature request: bearer security #70

josipoviciwan opened this issue Dec 12, 2022 · 5 comments
Assignees

Comments

@josipoviciwan
Copy link

It would be nice if we could define root level security for OpenAPI. One of the most commonly used is the following:

security:
  - BearerAuth: []
  
components:
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
@JaredCE
Copy link
Owner

JaredCE commented Dec 12, 2022

I had been holding off implementing this part as i was really hoping to better understand: #35. At some point, I want to re-write this library so that you don't even need any documentation, it can take a serverless file and spit out a valid openAPI document from it.

This area is one of the last few remaining, so I suspect i'm going to have to implement a version of it.

@josipoviciwan
Copy link
Author

It would still be nice to have a way to add security through the documentation file in case the auth is set up or done outside of the serverless file scope.

@JaredCE
Copy link
Owner

JaredCE commented Dec 12, 2022

Wonder if you could have a look over this PR: #71

see if it makes sense

@JaredCE
Copy link
Owner

JaredCE commented Dec 13, 2022

Version 0.0.33 is heading out now with all new security details.

@JaredCE
Copy link
Owner

JaredCE commented Dec 19, 2022

Going to close this as now done

@JaredCE JaredCE closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants