动态管理KeyCloak中的编辑权利
目前,我正在用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论