Browse Source

include data in raw_delete request

data was missing in raw_delete request: requests with json bodies like in "delete_client_roles_of_user" won't work
master
rike e 5 years ago
committed by GitHub
parent
commit
fa9f4520d5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      keycloak/connection.py

4
keycloak/connection.py

@ -198,11 +198,12 @@ class ConnectionManager(object):
raise KeycloakConnectionError(
"Can't connect to server (%s)" % e)
def raw_delete(self, path, **kwargs):
def raw_delete(self, path, data, **kwargs):
""" Submit delete request to the path.
:arg
path (str): Path for request.
data (dict): Payload for request.
:return
Response the request.
:exception
@ -211,6 +212,7 @@ class ConnectionManager(object):
try:
return self._s.delete(urljoin(self.base_url, path),
params=kwargs,
data=data,
headers=self.headers,
timeout=self.timeout,
verify=self.verify)

Loading…
Cancel
Save