Closed mishelen closed 4 months ago
Hello there mishelen 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
@mishelen did you solve it?
@mishelen did you solve it?
yes, I just mutate swagger doc adding all security rules by hand
Sorting
I'm submitting a question or possibly feature request.
I confirm that I
Expected Behavior
Suppose I have
tsoa.json
:So I want to add authorization. But problem is in fact that it will currently not applied to any of endpoints when making swagger requests. To add it, I need to specify
"rootSecurity": [{ "AuthorizationHeader": []}]
and then provideAuthorizationModule
, while authorization is done externally via lambda auth.Question is how to provide authorization schema and apply globally without need to implement it?
Context (Environment)
Version of the library: 6.2.0 Version of NodeJS: 20.12.2