I was able to get the authenticated example working in my codebase.
However, with the example as written, I don't see a way to pass the parsed JWT token back to the handler after authentication occurs.
The echo example uses openapi3filter from the Kin codebase - so theres no way to call ctx.Set("user", ...) on the echo.Context thats eventually passed into the handler...
Am I missing something here? I'm contemplating one of two solutions, either double parse the token once with the swagger-based middleware and also with the native echo or writing a completely custom middleware that works like openapi3filter but for echo.
Any advice?
Thanks.
Stephen
I was able to get the authenticated example working in my codebase.
However, with the example as written, I don't see a way to pass the parsed JWT token back to the handler after authentication occurs.
The echo example uses
openapi3filterfrom the Kin codebase - so theres no way to callctx.Set("user", ...)on theecho.Contextthats eventually passed into the handler...Am I missing something here? I'm contemplating one of two solutions, either double parse the token once with the swagger-based middleware and also with the native echo or writing a completely custom middleware that works like openapi3filter but for echo.
Any advice?
Thanks.
Stephen