Hi, 

I have a gRPC server. I want to protect some routes, ensuring only 
authenticated users can access them. 

Ok, so you can use a server interceptor, as done in the 
[examples](https://github.com/grpc/grpc/blob/master/examples/python/auth/customized_auth_server.py#L35).
 


I want to be able to now augment the context, so that the `RpcHandlers` 
which are about to be called have the `user` field in the context and can 
use it directly (instead of having to replicate the authentication logic 
which has just been done by the interceptor). 

It's the same question as [this 
one](https://github.com/grpc/grpc-go/issues/4363), but that one is for go - 
I am interested in python. 

Is there a way to do this? 

-- 
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 visit 
https://groups.google.com/d/msgid/grpc-io/29274863-9af5-4ac8-8416-f54967d40ac8n%40googlegroups.com.

Reply via email to