robosats/robosats
jerry c3d1cd2472
Return json output instead of html when wrong token in Header Authorization (#1247)
fix #1246

Return a JsonResponse instead of raising AuthenticationFailed
Exception that is turned into the general html error by django.

rest_framework.response.Response should not be used in middleware,
will return django.template.response.ContentNotRenderedError.
2024-04-29 23:08:46 +00:00
..
celery Add keysend devfund donations functionality (#589) 2023-05-16 17:12:15 +00:00
__init__.py Fix code style issues with Black 2022-10-20 09:56:10 +00:00
asgi.py Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
middleware.py Return json output instead of html when wrong token in Header Authorization (#1247) 2024-04-29 23:08:46 +00:00
routing.py Add RobotTokenSHA256 middleware, /api/robot and frontend entropy calc (#512) 2023-05-05 10:12:38 +00:00
settings.py Refactor contexts and models (#921) 2023-12-02 10:40:59 +00:00
urls.py Fix new WS middleware for old auth method, improve auth token admin panel 2023-05-07 14:51:17 -07:00
wsgi.py Re-format all python code 2022-02-17 11:50:10 -08:00