Home > Blockchain >  Implement JWT in Django with gRPC
Implement JWT in Django with gRPC

Time:11-28

I read gRPC documentations but it was not clear for me.

In JWT requests (REST) we always send the token with each request, but what is authentication in gRPC?

CodePudding user response:

As gRPC is sent over HTTP/2, the tokens are sent as HTTP/2 headers. Typically in Python you add the token as a metadata header and then it will be converted into HTTP/2 on the wire.

see this sample https://github.com/raylenmargono/gRPC-Python-JWT-Auth-Example

  • Related