nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.28k stars 7.59k forks source link

Grpc: Send context data with ClientGrpc #881

Closed coderdiaz closed 6 years ago

coderdiaz commented 6 years ago

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Actually, I have a microservice based in Golang and I need to request a Grpc Method but this need a Authorization Header.

How can I send this header using the ClientGrpc in Nest?

Expected behavior

Send context data using ClientGrpc implementation.

What is the motivation / use case for changing the behavior?

Environment


Nest version: 5.0.0


For Tooling issues:
- Node version: 8.9.0  
- Platform:  Mac 

Others:

- Npm: 5.5.1
gatero commented 6 years ago

+1

kamilmysliwiec commented 6 years ago

Pass grpc.Metadata object as a second argument.

kamilmysliwiec commented 6 years ago

Created issue in the docs repository https://github.com/nestjs/docs.nestjs.com/issues/115

zodiac1214 commented 5 years ago

Pass grpc.Metadata object as a second argument.

https://stackoverflow.com/a/54279876 this is what the "second argument" is ..... :(

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.