tsoa
tsoa copied to clipboard
Can't access response in authentication function
Sorting
-
I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request
-
I confirm that I
- [x] used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
I want to set header or cookie in authentication function
Current Behavior
I can't access the response In authentication function, so that I can't manipulate header nor cookies in expressAuthentication function
Possible Solution
Pass response object to authentication function
Steps to Reproduce
Context (Environment)
Version of the library: 3.14.1 Version of NodeJS: 16.13.0
- Confirm you were using yarn not npm: [ ]
Detailed Description
Breaking change?
Hello there eungkyu 👋
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
Any news on this?
Any news?
Can this be re-opened?
I want to be able to access the koa response object to validate a user has access to an object before we return it to them (based on the scopes in the @Security annotation).
I would be open to making a PR for this if bandwidth is an issue