akka-grpc
akka-grpc copied to clipboard
Add support for CallCredentials in akka-http backend
Merge metadata generated by CallCredentials callback into headers at request time.
I’m putting up this PR as WiP to get feedback from maintainers.
@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