Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to define access condition based on @PathVariable or @RequestBody in Keycloak?

We are using Keycloak v6.0.0 and Spring Framework. We want to define some access conditions based on @PathVariable value and @RequestBody fields value in Keycloak admin panel, but we can't find any way to do this. How can we access these fields value and define Resource or Policy based on it?

like image 440
Ali Ahm... Avatar asked Apr 30 '19 12:04

Ali Ahm...


1 Answers

I think that it will help you the Admin REST API. Also, I've write a Keycloak-Client in Kotlin for some basic APIs like: signUp, login and logout. Maybe it will help you.

like image 133
Dina Bogdan Avatar answered Oct 18 '22 22:10

Dina Bogdan