tsoa icon indicating copy to clipboard operation
tsoa copied to clipboard

Can't access response in authentication function

Open eungkyu opened this issue 3 years ago • 5 comments

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?

eungkyu avatar Nov 27 '21 17:11 eungkyu

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.👀

github-actions[bot] avatar Nov 27 '21 17:11 github-actions[bot]

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

github-actions[bot] avatar Dec 28 '21 00:12 github-actions[bot]

Any news on this?

SalhiYassine avatar Aug 18 '22 08:08 SalhiYassine

Any news?

normandanielmq avatar Jun 21 '23 15:06 normandanielmq

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

fage88 avatar Jan 03 '24 19:01 fage88