API Gateway ocelot with authorization Dotnet6

Viewed 270

i want to pass token between micro service using Ocelot just like this:

enter image description here

this code dont work in other microservice

[Route("api/[controller]")]
[ApiController]
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme, Roles = "Admin")]

public class ValuesController : ControllerBase
{
0 Answers
Related