Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include data in raw_delete request #56

Merged
merged 1 commit into from
Feb 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion keycloak/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,12 @@ def raw_put(self, path, data, **kwargs):
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
Expand All @@ -211,6 +212,7 @@ def raw_delete(self, path, **kwargs):
try:
return self._s.delete(urljoin(self.base_url, path),
params=kwargs,
data=data,
headers=self.headers,
timeout=self.timeout,
verify=self.verify)
Expand Down