@ -1072,9 +1072,9 @@ class KeycloakAdmin:
data = json . dumps ( payload ) )
data = json . dumps ( payload ) )
return raise_error_from_response ( data_raw , KeycloakGetError , expected_codes = [ 204 ] )
return raise_error_from_response ( data_raw , KeycloakGetError , expected_codes = [ 204 ] )
def delete _group_client_roles( self , group_id , client_id , roles ) :
def get _group_client_roles( self , group_id , client_id ) :
"""
"""
Delete client roles of a group
Get client roles of a group
: param group_id : id of group
: param group_id : id of group
: param client_id : id of client ( not client - id )
: param client_id : id of client ( not client - id )
@ -1082,14 +1082,13 @@ class KeycloakAdmin:
: return Keycloak server response
: return Keycloak server response
"""
"""
payload = roles if isinstance ( roles , list ) else [ roles ]
params_path = { " realm-name " : self . realm_name , " id " : group_id , " client-id " : client_id }
params_path = { " realm-name " : self . realm_name , " id " : group_id , " client-id " : client_id }
data_raw = self . raw_get ( URL_ADMIN_GROUPS_CLIENT_ROLES . format ( * * params_path ) )
data_raw = self . raw_get ( URL_ADMIN_GROUPS_CLIENT_ROLES . format ( * * params_path ) )
return raise_error_from_response ( data_raw , KeycloakGetError )
return raise_error_from_response ( data_raw , KeycloakGetError )
def get _group_client_roles( self , group_id , client_id , roles ) :
def delete _group_client_roles( self , group_id , client_id , roles ) :
"""
"""
Get client roles of a group
Delete client roles of a group
: param group_id : id of group
: param group_id : id of group
: param client_id : id of client ( not client - id )
: param client_id : id of client ( not client - id )