动态管理KeyCloak中的编辑权利

发布于 2025-01-21 11:38:51 字数 234 浏览 2 评论 0原文

目前,我正在用KeyCloak作为Blog-Splication的身份系统来建立Quarkus的后端服务。我以某种方式必须解决以下问题:

如果用户创建了一个新的博客库,则只有用户才有权以后进行编辑。那我怎么能意识到这一点呢? KeyCloak有没有办法向用户为其博客群增添权利?还是您愿意建议将用户名存储在博客数据库中,然后检查发行令牌的用户名是否与DB中的“ blog creatorusername”相同?

任何帮助都赞赏

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文