I'd suggest that you look at gRPC metadata [1] (like http-headers) and interceptors (like middlewares) [2].
One way I did this was to set the Authorization credentials obtained from my authentication server in the client call, then you can use an interceptor in the backend that checks if the credentials are valid. 1. https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-metadata.md 2. https://edgehog.blog/a-guide-to-grpc-and-interceptors-265c306d3773 On Wed, Sep 14, 2022 at 6:28 PM 'Easwar Swaminathan' via grpc.io < [email protected]> wrote: > Are you looking to use transport credentials (e.g. TLS) or call > credentials (e.g. OAuth) or both? > > This section lists the supported APIs with regards to passing credentials > to the gRPC server: > https://grpc.github.io/grpc/python/grpc.html#create-server-credentials. > > On Tuesday, September 6, 2022 at 2:36:11 PM UTC-7 [email protected] > wrote: > >> guys I'm trying to build an application that's based on python-gRPC >> microservices >> and one mobile app in React Native as the gRPC client. >> I'm using ECS fargate to run the containers, and the ALB so i can call >> all by the same DNS, >> so far so good, everything is working well >> now i start to use Cognito to do the Auth by the AWS, i use Amplify in my >> React Native App >> and there i can do the Auth, >> i can apply one rule to the ALB that will make the call gRPC needs Auth, >> anyone know how to send this type of Auth via gRPC? or any other info about >> this AWS things with gRPC. >> I try to search some answers but with no good results, and try some AWS >> discords too, but is hard find people that uses gRPC in real life >> >> -- > 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/49770d0c-12bf-4296-b628-dca1034c9755n%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/49770d0c-12bf-4296-b628-dca1034c9755n%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/CAPk33%3D8sPCcbipyuc7Vgb5%3DDzaOZUQ%2BQgq_TqY8vpH5bu6j%3DHQ%40mail.gmail.com.
