Pass openid-connect data to grpc-transcode #8360
Replies: 1 comment 3 replies
-
I'm using grpc-transcode to convert HTTP calls to GRPC calls. If the openid-connect token is validated, then the HTTP call can go through to the GRPC service.My question is how I can pass on some of the authenticated information? For example the JWT used for authorization.The reasons for using the oidc-connect plugin are authentication but also identification so that the upstream service knows who is authenticated and can extract info from the JWT.I guess I can have the client replicate the JWT token in both the header (for the openid-connect plugin to use for authentication) and in the body json (for the grpc-transcode plugin to pass onto the service that can extract the data in the JWT). This requires sending the same data in both the header and body. Not so elegant...I guess the better question might be to ask if I even need to bother with the oidc-connect plugin if I can just pass the JWT to the GRPC service and rely on it to confirm the JWT is valid. I was assuming the oidc-plugin doing the validation was somehow a better was to go as it actually calls the authentication service whereas the grpc service would probably just decode the JWT and proceed if it was valid. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions