TransformerOptimus / SuperAGI

<⚡️> SuperAGI - A dev-first open source autonomous AI agent framework. Enabling developers to build, manage & run useful autonomous agents quickly and reliably.
https://superagi.com/
MIT License
15.51k stars 1.87k forks source link

Supercoder Issue 1358 Resolved #1426

Open supercoder-dev opened 5 months ago

supercoder-dev commented 5 months ago

To address the issue, we need to add detailed logging, validate the incoming request data, and return a detailed error message if the validation fails. This will help in capturing the incoming request data and ensuring all required fields are present and correctly formatted. To resolve the issue with HTTP basic auth, we need to modify the get_current_user method to check for the presence of HTTP basic auth headers and validate them if present. If HTTP basic auth is used, extract the username from the Authorization header and use it to fetch the user from the database.

CLAassistant commented 5 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.