discord-gophers / goapi-gen

This package contains a set of utilities for generating Go boilerplate code for services based on OpenAPI 3.0 API definitions
Apache License 2.0
132 stars 12 forks source link

Add support for updating context from auth handler #71

Closed zacharyburkett closed 2 years ago

zacharyburkett commented 2 years ago

Currently when using middleware.OapiRequestValidatorWithOptions a provided *openapi3filter.AuthenticationInput cannot update a request's context.

Update the middleware in such a way that manipulations to the input request and/or context in the provided auth method will propagate through the middleware.