如何将客户端访问限制为仅在密钥斗篷中的一组用户?

编程入门 行业动态 更新时间:2024-10-10 07:23:15
本文介绍了如何将客户端访问限制为仅在密钥斗篷中的一组用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的awx(可折叠塔)网页在keycloak中有一个客户端. 我只需要一个特定keycloak组中的用户即可通过此客户端登录.

I have a client in keycloak for my awx(ansible tower) webpage. I need only the users from one specific keycloak group to be able to log in through this client.

如何禁止所有其他用户(一个特定组除外)使用此keycloak客户端?

How can I forbid all other users(except from one particular group) from using this keycloak client?

推荐答案

我是这样解决的:

  • 在Keycloak中创建新角色.
  • 将此角色分配给组.
  • 在Kycloak中创建一个新的身份验证脚本.配置登录时允许使用哪个角色(例如user.hasRole(realm.getRole("yourRoleName"))).
  • 在客户端的设置中,在身份验证流替代"下,选择刚刚创建的身份验证脚本.
  • Create a new role in Keycloak.
  • Assign this role to the group.
  • Create a new authentication script in Kycloak. Configure which role is allowed upon login (e.g. user.hasRole(realm.getRole("yourRoleName"))).
  • In the client's settings, under "Authentication Flow Overrides", choose the authentication script that was just created.
  • 更多推荐

    如何将客户端访问限制为仅在密钥斗篷中的一组用户?

    本文发布于:2023-11-28 11:54:11,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1642299.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:密钥   斗篷   如何将   客户端   用户

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!