Dynamically Manage Edit-Rights in Keycloak

201 Views Asked by At

currently I'm building a Backend-Service in Quarkus with Keycloak as the Auth-system for a sort of Blog-Application. I somehow have to solve the following problem:

If a user creates a new blog-post, only the user has the rights to edit it afterwards. So how can I realize this? Is there a way in Keycloak to kind of dynamically add rights to a User for his blog-post? Or would you rather recommend storing the Username in the Blog-Post DB and then check if the username issuing the token is the same for as the "BlogCreatorUsername" in the DB?

Any help appreciated

0

There are 0 best solutions below