swh.deposit.auth module¶
-
swh.deposit.auth.
convert_response
(request, content)[source]¶ Convert response from drf’s basic authentication mechanism to a swh-deposit one.
- Args:
request (Request): Use to build the response content (bytes): The drf’s answer
Returns:
Response with the same status error as before, only the body is now an swh-deposit compliant one.