Skip to content

Commit

Permalink
Add context auth headers to GRPC meta data (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Assem-Uber authored Aug 16, 2023
1 parent e1d15c0 commit 8db3ac3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/middleware/grpc-client/grpc-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ class GRPCService {
meta.add('rpc-caller', 'cadence-ui');
meta.add('rpc-encoding', 'proto');

Object.entries(this.ctx.authTokenHeaders || {}).forEach(([key, value]) => {
meta.add(key, value);
});

return meta;
}
}
Expand Down

0 comments on commit 8db3ac3

Please sign in to comment.