简体   繁体   English

如何实现Grpc用户名/密码认证。 Python客户端,Java服务器

[英]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: 所以,我的问题是:

  • How to create a server with username/password authentication on java server? 如何在Java服务器上创建具有用户名/密码身份验证的服务器?
  • How should python client connect to it? python客户端应如何连接?

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.

相关问题 客户端/服务器用户名/密码认证 - Client/server username/password authentication Android java-grpc 客户端到 python-grpc 服务器 - Android java-grpc client to python-grpc server 服务器使用ADFS身份验证时如何实现Java soap客户端? - How to implement Java soap client when server uses ADFS authentication? 如何使用Apache Directory Server和客户端Java API实施身份验证 - How to implement authentication with Apache Directory Server and Client Java API 仅使用CA在Java中使用gRPC对服务器执行客户端身份验证 - Perform client authentication to server with gRPC in Java with only a CA java实现的grpc服务器端的每一个数据包如何获取客户端的ip和端口? - how to get the ip and port of the client side for each packet of data on grpc server side which implement by java? 如何在 Python 中为使用 Java 编写的 gRPC 服务编写 gRPC 客户端 - How to write a gRPC client in Python for a gRPC service written in Java 如何从客户端发送用于Web服务身份验证的用户名密码 - How to send username password for web service authentication from client side 在客户端/服务器中保存用户名/密码的数据结构 Java 应用程序 - Data Structure for Saving Username/Password in a Client/Server Java Application 使用JDBC实现用户名和密码验证 - Using JDBC to implement username and password authentication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM