-
-
Notifications
You must be signed in to change notification settings - Fork 295
feat: add security scheme config to openapi (#1122) #1211
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
base: main
Are you sure you want to change the base?
feat: add security scheme config to openapi (#1122) #1211
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✨ No issues found! Your code is sparkling clean! ✨ Need help? Join our Discord for support! |
for more information, see https://pre-commit.ci
CodSpeed Performance ReportMerging #1211 will not alter performanceComparing Summary
|
} | ||
|
||
def add_global_security_scheme(self, name: str, scheme: dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where will this be called?
if self.authentication_handler: | ||
# self.authentication_handler.token_getter | ||
self.openapi.add_global_security_scheme(name="bearerAuth", scheme={"type": "http", "scheme": "bearer"}) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and what would be the other kinds of auth here?
Description
This PR fixes #1122
Summary
This PR adds support for configuring security schemes in the generated OpenAPI specification.
PR Checklist
Please ensure that:
Pre-Commit Instructions: