-
-
Notifications
You must be signed in to change notification settings - Fork 23.7k
fix: update loginmethod endpoints #5681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request disables the read, create, and update endpoints for loginmethod on the cloud platform by adding platform checks. The implementation is straightforward, but there are opportunities for improvement regarding code consistency and correctness of HTTP status codes. My review includes suggestions to use StatusCodes.FORBIDDEN instead of StatusCodes.BAD_REQUEST for better semantic accuracy, and to place all authorization checks in the controller layer for consistency. These suggestions align with best practices for implementing authorization checks to avoid unintended failures.
No description provided.