Closed lucas-figueira closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
3 Code Smells
No Coverage information
9.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
What type of PR is this?
Description
This Pull Request aims to enhance the application by introducing validation checks for users associated with companies. The primary focus has been on ensuring that users can only perform actions within the context of their respective companies. The changes have been implemented in key endpoints, including the Login, User Creation, and User List methods.
Changes Made:
Login Endpoint: Added a validation step during user login to ensure that the provided company context is valid & Updated the authentication flow to consider the company context for authorization.
User Creation Endpoint: Extended the user creation process to include company association & Implemented a check to ensure that the specified company is valid before allowing user creation.
User List Endpoint: Modified the user list retrieval to filter users based on their associated companies & Introduced a company context parameter to restrict user list retrieval to a specific company.
Benefits
How I Tested This
Recordings
Next Steps
Added/updated tests?