DFIRKuiper / Kuiper

Digital Forensics Investigation Platform
736 stars 110 forks source link

Improve api checks #113

Closed lrapp-adan closed 7 months ago

lrapp-adan commented 10 months ago

This pr structures the API token checking function more logical and gives proper error messages. Especially it differentiates between API token errors and json parsing errors. The error messages are directly returned instead of forwarding to an error page (which broke deployments using http basic auth for everything but the API and thus made proper error checking at the client side harder).