Browse Source

Merge pull request #265 from marcospereirampj/develop

Reverted deepcopy in KeycloakAdmin
pull/245/head^2
Marcos Pereira 3 years ago
committed by GitHub
parent
commit
fe4f46b378
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      README.md
  2. 1
      keycloak/keycloak_admin.py

4
README.md

@ -257,6 +257,10 @@ realm_roles = keycloak_admin.get_roles()
# 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")
# Assign realm roles to user
keycloak_admin.assign_realm_roles(user_id=user_id, roles=realm_roles)
# Get all ID Providers
idps = keycloak_admin.get_idps()

1
keycloak/keycloak_admin.py

@ -1234,7 +1234,6 @@ class KeycloakAdmin:
Assign realm roles to a user
:param user_id: id of user
:param client_id: id of client containing role (not client-id)
:param roles: roles list or role (use RoleRepresentation)
:return Keycloak server response
"""

Loading…
Cancel
Save