[英]How to implement Grpc username/password authentication. Python client, Java server
I'm trying to figure out how to authenticate with username/password when I create a connection and nothing found. 我试图弄清楚在创建连接时没有使用用户名/密码进行身份验证的过程。 So, my questions:
所以,我的问题是:
There is no built-in support for username and password authentication in gRPC as this approach is discouraged from a security standpoint: see Julien's response and other discussion of this from the grpc.io mailing list. gRPC中不提供对用户名和密码身份验证的内置支持,因为从安全角度考虑,不建议使用此方法:请从grpc.io邮件列表中查看Julien的回复和其他讨论。
gRPC provides plugins to add credential objects as call metadata, and you'd have to roll your own credentials type: you can see some information and examples at https://grpc.io/docs/guides/auth.html#extending-grpc-to-support-other-authentication-mechanisms . gRPC提供了用于将凭证对象添加为呼叫元数据的插件,您必须滚动自己的凭证类型:您可以在https://grpc.io/docs/guides/auth.html#extending-grpc上查看一些信息和示例支持其他身份验证机制 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.