Browse Source

Update README example create_client_role syntax

In the README the `create_client_role` function has a `client_id` argument, but in [keycloak_admin.py](0ebcf99094/keycloak/keycloak_admin.py (L1001))  `client_role_id` seems to be used instead.
pull/222/head
Bas van der Linden 3 years ago
committed by GitHub
parent
commit
81b12d2d55
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

2
README.md

@ -215,7 +215,7 @@ role = keycloak_admin.get_client_role(client_id="client_id", role_name="role_nam
role_id = keycloak_admin.get_client_role_id(client_id="client_id", role_name="test")
# Create client role
keycloak_admin.create_client_role(client_id='client_id', {'name': 'roleName', 'clientRole': True})
keycloak_admin.create_client_role(client_role_id='client_id', {'name': 'roleName', 'clientRole': True})
# Assign client role to user. Note that BOTH role_name and role_id appear to be required.
keycloak_admin.assign_client_role(client_id="client_id", user_id="user_id", role_id="role_id", role_name="test")

Loading…
Cancel
Save