Issue
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.
How can I forbid all other users(except from one particular group) from using this keycloak
client?
Solution
I solved it like this:
- 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.
Answered By - lukasell Answer Checked By - Pedro (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.