Can you to add Claims support to your example?
P9avel opened this issue ยท 2 comments
P9avel commented
Hi, thank you for your work. I am want to use your solution for my task. Can you to help me and other users? Please
- convert example to .Net 6 and latest Ocelot version 12
- can you prepare example with claim base authorization. For example i am want to use [Authorize("MyPolice")] attribute for some controller actions
I think with very hepled many peoples
LeaoSomogyi commented
@P9avel hello! I'm happy to knew my work helped someone
In this example, Ocelot will repass the token to all service calls, so you just need to configure the [Authorize("MyPolice")]
for each resource in order to validate if the user can access or not.
I will update the example applying some Policies, not sure how long it will take
LeaoSomogyi commented
@P9avel thanks for the Issue! I updated the project to .net 6.0 and create some policy example, just follow the instructions on readme.md and import the postman collection.
Hope it helps