How we can pass auth token to micro services when we use GraphQL schema stitching with authorization for micro services in .NET Core 6 Hotchocolate?
Asked
Active
Viewed 380 times
1 Answers
4
You can use the Microsoft.AspNetCore.HeaderPropagation
NuGet package to forward the Authorization
header to your services.
services.AddHeaderPropagation(options =>
{
options.Headers.Add("Authorization");
});
app.UseHeaderPropagation();

Rune Vikestad
- 4,642
- 1
- 25
- 36