Replies: 1 comment 3 replies
-
Hi @kopticx !
Are you kidding? Remove "RouteClaimsRequirement" options from the route JSON and setup Authentication first.
It allowed to Post because you have not setup Authentication correctly... |
Beta Was this translation helpful? Give feedback.
-
Hello, I am trying to add authentication to my endpoints, however it appears that ocelot is not verifying the claims because even though my token does not have the admin role it still allows me to POST.
How could I resolve this?
Token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9lbWFpbGFkZHJlc3MiOiJrZXZpbjJAYWEuY29tIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6ImtvcHRpY3gyIiwiZXhwIjoxNzMzMzIyMDQzfQ.H1WYrYEuH6EppNnXI2TJASDl1PeO6_943sPIf4FJl0o
Beta Was this translation helpful? Give feedback.
All reactions