-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Description
Django-simple-sso seems to be incompatible to the django-debug-toolbar project.
An error is thrown in the ddt middleware, once a client application tries to authenticate a user against the server machine, where the ddt is added to the middlewares.
Reason
The request body contains the signed json content. Ddt always tries to encode this JSON for further analysis, I guess. Due to the structure of the content like
{"x": "y"}.greatSignaturea JsonDecodeError is thrown, since this is no proper json.
Solutions
- No solution, just add the hint on the README, that for development (ddt is/should only be used for dev phase) the django debug toolbar needs to be deactivated, when the sso functionality will be used/tested
- Refactor the sign-checking functionality into a middleware component, which needs to live at an early stage of the
MIDDLEWARElist in thesettings.py.
Metadata
Metadata
Assignees
Labels
No labels