mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-01 04:38:46 +02:00
The authentication backend mozilla_django_oidc.contrib.drf.OIDCAuthentication is present in the default authentication classes for the REST_FRAMEWORK settings. This backend should not be used by our application and can lead to the usage of our main api with an access_token instead of the cookie session. We need to override the drf SessionAuthentication backend to implement the authenticate_header method. Without this, a 403 status code is returned, but it is not valid. It must a be 401