flower icon indicating copy to clipboard operation
flower copied to clipboard

How I can add a header value like bearer token to client's request?

Open padrian2s opened this issue 1 year ago • 1 comments

What is your question?

How I can add a header value like bearer token to client's request to act as m2m authentication. So I need only to add a value on request header.

padrian2s avatar Sep 18 '24 13:09 padrian2s

Hi there, in the documentation it is written that clients and server usually communicate with gRPC, so I don't think you can directly add the bearer token to the request header as in the traditional HTTP header. I suggest you to either implement an high level authentication strategy using the client configuration explained here https://flower.ai/docs/framework/how-to-configure-clients.html, or to adopt the built-in authentication: https://flower.ai/docs/framework/how-to-authenticate-supernodes.html.

Best of luck with your project.

GabrieleLerani avatar Sep 24 '24 17:09 GabrieleLerani

Hi

Thank you for raising this. This problem seems to have been resolved with above comment.

Will close this for now.

WilliamLindskog avatar Dec 10 '24 15:12 WilliamLindskog