akka-grpc icon indicating copy to clipboard operation
akka-grpc copied to clipboard

Add support for CallCredentials in akka-http backend

Open dwhjames opened this issue 2 years ago • 1 comments

Merge metadata generated by CallCredentials callback into headers at request time.


I’m putting up this PR as WiP to get feedback from maintainers.

dwhjames avatar Aug 03 '22 03:08 dwhjames

@raboof,

The Netty-based client has limited support for CallOptions, but it does currently support the call credentials feature.

https://github.com/akka/akka-grpc/blob/5c0f851980d5e5ddf9c81c97f7f88bf7cb4ee803/codegen/src/main/twirl/templates/ScalaClient/Client.scala.txt#L56

https://github.com/akka/akka-grpc/blob/5c0f851980d5e5ddf9c81c97f7f88bf7cb4ee803/runtime/src/main/scala/akka/grpc/internal/NettyClientUtils.scala#L194-L198

I was hoping to do the same for the akka-http based client.

When you have a chance, I would welcome any feedback on extending AkkaHttpClientUtils.scala

dwhjames avatar Aug 31 '22 02:08 dwhjames