Adding custom data to context from plugin. #6365
Unanswered
shovalyechiel1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! Im using the generic-auth plugin to do some token based authentication.
I've been looking around the docs and couldn't find any answer for my question so i'll try my luck here 😄
After the user is authenticated by the generic-auth plugin, i would like to add some of the user info to the context object ( and later on config the .meshrc.yml to add it to the operationalHeaders for the backend ) i've tried some variations ValidateUserFn, and resolveUserFn ( the resolve user fn holds the user data after i verifeid and decoded the jwt )
any suggestions ?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions