You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ApiSecurityRequirement() decorator is not working if defined for subcontrollers.
I have the below controller structure. I have configured ApiController as OpenApi controller. I am trying to make UsersController as Authenticated controller and AuthController as unauthenticated. But if i add ApiSecurityRequirement /JwtRequied on UsersController, actual authentication is working fine, but swagger ui does't consider it as authenticated and is ignoring bearer token in headers.
-AppController
-ApiController (configured as OpenApi class)
-UsersController (ApiSecurityRequirement or JwtRequied decorator)
-AuthController (unauthenticated)
Version of FoalTS: 2.8.1
ApiSecurityRequirement() decorator is not working if defined for subcontrollers.
I have the below controller structure. I have configured ApiController as OpenApi controller. I am trying to make UsersController as Authenticated controller and AuthController as unauthenticated. But if i add ApiSecurityRequirement /JwtRequied on UsersController, actual authentication is working fine, but swagger ui does't consider it as authenticated and is ignoring bearer token in headers.
I have created a repo with the sample files here https://github.com/text2n/foalts-test
the openapi.json is as below
The text was updated successfully, but these errors were encountered: