If you are looking for metadata extensions, can you take a look at this Python example: https://github.com/grpc/grpc/tree/master/examples/python/auth
On Wed, Aug 14, 2019 at 2:29 AM <[email protected]> wrote: > Hi, > Will this help if client wants to custom verify the server > certificate. Is there any sample? > > Client Side: create your own credentials with the credentials metadata > plugin API: > https://github.com/grpc/grpc/blob/master/include/grpc/grpc_security.h#L292 > > > > On Sunday, May 22, 2016 at 1:20:43 PM UTC+5:30, Yan Yan wrote: >> >> How could I use them in python and C++? Any sample code? Thx. >> >> https://github.com/grpc/grpc/issues/2059 >> >> jboeuf <https://github.com/jboeuf> commented 2 days ago >> <https://github.com/grpc/grpc/issues/2059#issuecomment-220510496> >> >> We now have APIs to do this: >> >> 1. >> >> Client Side: create your own credentials with the credentials >> metadata plugin API: >> >> https://github.com/grpc/grpc/blob/master/include/grpc/grpc_security.h#L292 >> 2. >> >> Server Side interceptor: auth metadata processor: >> >> https://github.com/grpc/grpc/blob/master/include/grpc/grpc_security.h#L383 >> >> >> >> On Friday, May 20, 2016 at 8:35:58 PM UTC+8, Yan Yan wrote: >>> >>> How can I do this kind of authentication for each connection? >>> How can I do this kind of authentication for each call? >>> Where do I put that if(inputUsername == dbUsername && inputPassword == >>> dbPassword) statement? And return a boolean? >>> Can I do it without encryption? I understand that plain text is >>> insecure. Thx. >>> >>> - authDb.txt >>> user01,password01 >>> user02,password02 >>> >>> I have read these. >>> >>> >>> http://www.grpc.io/docs/guides/auth.html#extending-grpc-to-support-other-authentication-mechanisms >>> >>> http://www.grpc.io/grpc/cpp/classgrpc_1_1_metadata_credentials_plugin.html >>> http://www.grpc.io/grpc/python/grpc.beta.html >>> https://groups.google.com/forum/#!topic/grpc-io/iLHgWC8o8UM >>> >>> https://groups.google.com/forum/#!searchin/grpc-io/authentication/grpc-io/LP94S3UF8bU/bLfFV2RGEgAJ >>> >>> -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/cc5a118d-196b-486f-8a37-99f94f438ebc%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/cc5a118d-196b-486f-8a37-99f94f438ebc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAMC1%3Djc%3D7_iZcKzqr9v4mbJyVbV55hdUYr885Ey8%3Dr%3Dr7h9hrQ%40mail.gmail.com.
