-
Notifications
You must be signed in to change notification settings - Fork 1
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
Provide custom SecurityScheme for a specific endpoint #2
Comments
There is limited support for overriding the default security scheme. The decorator
Other than this bare-bone support for disabling authentication, I don't think the library exposes any per-endpoint override capabilities. If there is support for this in OpenAPI, integrating this feature would likely require extending |
Looks like Anyway, is there any way to provide header option in a request schema? Greping whole library sources gives no results @dataclass
class AuthSchema:
x_token: Annotated[str, ParameterLocation.Header] |
You would want to create a |
Is there any way to provide
SecurityScheme
to a specific API endpoint? Looks like its only used in a global options and there is no way to provide custom auth for a single endpoint even with custom header becauseParameterLocation.Header
is not used anywhereThe text was updated successfully, but these errors were encountered: