Skip to content

Authenticated example leaves token unavailable to handler function.. #915

@sblackstone

Description

@sblackstone

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions