C#C
C#10mo ago
Salight

✅ Onion Architecture Authorization doesn't work

I got a presentation layer and api project i make the default scheme JwtBearer in api but when i try to access a authorized controller in presentation layer i got 404 because of the scheme i gotta make manually like this
[Authorize(AuthenticationSchemes =JwtBearerDefaults.AuthenticationScheme)]

I don't want to make every authorize attribute like this so how can i solve this problem
image.png
Was this page helpful?