There is a way to understand if a route is under auth from his parent tree?
12/21/2020, 11:28 AM
Hey, you can check
if there is one session you need
12/21/2020, 11:33 AM
Hi @e5l, I need to understand if a route is under auth before the call. The main scope is to generate an openapi.json with secure flag or not on the application startup.
I started from implementation of the ktor-swagger library
This library manages security specifications globally.
I would like to integrate it with the specific definition for each individual route.
This library uses a wrapper built around ktor locations and builds the swagger / openapi tree at runtime.
What I was asking is if there is the possibility to intercept if a Route is declared under authenticate (...) or not to pass this information to the library structure.