简体   繁体   English

带元数据的gRPC身份验证

[英]gRPC authentication with metadata

I'm wondering how I can get authentication setup on my gRPC service? 我想知道如何在我的gRPC服务上进行身份验证设置? I've read that metadata is the way to go. 我已经读过元数据是要走的路。

Using the Node.js grpc library and grpcc to test my implementation. 使用Node.js grpc库和grpcc来测试我的实现。 I basically have a JWT token being received on every request, just no way to digest and validate it over the gRPC pipe. 我基本上在每个请求上都收到一个JWT令牌,只是没有办法通过gRPC管道来消化和验证它。

Suggestions/guidance is most appreciated. 建议/指导最受赞赏。

Node gRPC does not currently expose functionality to process authentication tokens on the server. 节点gRPC当前不提供在服务器上处理身份验证令牌的功能。 The token should show up with the rest of the metadata on the server, but you will have to process it on your own. 令牌应与服务器上的其他元数据一起显示,但是您将必须自己处理它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM