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
Within the AuthenticationFunc, after I verify a JWT, I want to add claims to the request context.Context for downstream middleware and functions to use.
Is this possible with openapi3filter? I must be doing something wrong, because this is the only way I can get it to work:
// this does not workinput.RequestValidationInput.Request=input.RequestValidationInput.Request.WithContext(newCtx)
// this does work*input.RequestValidationInput.Request=*input.RequestValidationInput.Request.WithContext(newCtx)
Within the
AuthenticationFunc
, after I verify a JWT, I want to add claims to the requestcontext.Context
for downstream middleware and functions to use.Is this possible with openapi3filter? I must be doing something wrong, because this is the only way I can get it to work:
Relevant code:
kin-openapi/openapi3filter/middleware.go
Lines 119 to 147 in 56505dc
Thanks!
The text was updated successfully, but these errors were encountered: