intuitem / ciso-assistant-community

CISO Assistant is a one-stop-shop for GRC, covering Risk, AppSec and Audit Management and supporting +37 frameworks worldwide: NIST CSF, ISO 27001, SOC2, CIS, PCI DSS, NIS2, CMMC, PSPF, GDPR, HIPAA, Essential Eight, NYDFS-500, DORA, NIST AI RMF, 800-53, 800-171, CyFun, CJIS, AirCyber and so much more
https://intuitem.com
GNU Affero General Public License v3.0
400 stars 60 forks source link

Fix error 400 when exporting backup #320

Closed nas-tabchiche closed 3 weeks ago

nas-tabchiche commented 3 weeks ago

This fixes the error 400 when attempting to export a backup.

The issue was due to dump_db_view being a function-based view, and thus not inheriting settings.DEFAULT_AUTHENTICATION_CLASSES, therefore assuming the authentication is session-based while it is in fact token-based.