Repository navigation
Keycloak policy enforcement authorization with spring boot 3 #23287
Unanswered
nazmul-prince
asked this question in
Q&A
Replies: 2 comments
|
Good morning, Nazmul Huda, I hope you’re doing well. I’m facing the same issue you described regarding the http-method-as-scope configuration in Keycloak. Were you able to solve it? If so, could you share how you resolved it or provide any guidance? That would be extremely helpful. Thank you very much for your attention! Best regards, |
0 replies
|
Hello all, I would greatly appreciate any comment, here's the repo: Ciao |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello guys, I tried to implement http method scope based authorization for the same uri resource then its not working. For example:
I've created 2 resources in keyckloak for my client:
Now when the user with the role view_employee try to access GET /employee, then it got forbidden. In the log I check that spring boot always sending challange with to check the policy enforcement edit employee resource whenever the /employee api is called with either GET or POST method.
Is there any way to achieve this so that same uri resource could be authorized idependently in keycloak from spring boot 3?
Here is my application.properties:
Here is my simple security config:
All reactions