-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix: unauthorized error message #500
Conversation
Signed-off-by: sanjay-k1910 <[email protected]>
Signed-off-by: sanjay-k1910 <[email protected]>
@@ -59,7 +59,8 @@ export const ResponseMessages = { | |||
invitationStatusUpdateInvalid: 'Status update is invalid. Request is already', | |||
resetSamePassword: 'New password should not be the current password', | |||
resetPasswordLink: 'Unable to create reset password token', | |||
invalidResetLink: 'Invalid reset password link or expired' | |||
invalidResetLink: 'Invalid reset password link or expired', |
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.
update verbose
"Invalid or expired reset password link"
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.
Resolved.
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.
Resolved.
@@ -59,7 +59,8 @@ export const ResponseMessages = { | |||
invitationStatusUpdateInvalid: 'Status update is invalid. Request is already', | |||
resetSamePassword: 'New password should not be the current password', | |||
resetPasswordLink: 'Unable to create reset password token', | |||
invalidResetLink: 'Invalid reset password link or expired' | |||
invalidResetLink: 'Invalid reset password link or expired', | |||
invalidAccessToken: 'Invalid access token' |
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.
'Unauthorized' or 'Authentication failed' message is also fine. No need to provide technical details to user.
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.
Resolved.
Signed-off-by: sanjay-k1910 <[email protected]>
Quality Gate passedIssues Measures |
* fix: unauthorized error message Signed-off-by: sanjay-k1910 <[email protected]> * fix: sonarlint issue Signed-off-by: sanjay-k1910 <[email protected]> * refactor: error messages Signed-off-by: sanjay-k1910 <[email protected]> --------- Signed-off-by: sanjay-k1910 <[email protected]>
* fix: unauthorized error message Signed-off-by: sanjay-k1910 <[email protected]> * fix: sonarlint issue Signed-off-by: sanjay-k1910 <[email protected]> * refactor: error messages Signed-off-by: sanjay-k1910 <[email protected]> --------- Signed-off-by: sanjay-k1910 <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
* fix: unauthorized error message Signed-off-by: sanjay-k1910 <[email protected]> * fix: sonarlint issue Signed-off-by: sanjay-k1910 <[email protected]> * refactor: error messages Signed-off-by: sanjay-k1910 <[email protected]> --------- Signed-off-by: sanjay-k1910 <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
* fix: unauthorized error message Signed-off-by: sanjay-k1910 <[email protected]> * fix: sonarlint issue Signed-off-by: sanjay-k1910 <[email protected]> * refactor: error messages Signed-off-by: sanjay-k1910 <[email protected]> --------- Signed-off-by: sanjay-k1910 <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
* fix: unauthorized error message Signed-off-by: sanjay-k1910 <[email protected]> * fix: sonarlint issue Signed-off-by: sanjay-k1910 <[email protected]> * refactor: error messages Signed-off-by: sanjay-k1910 <[email protected]> --------- Signed-off-by: sanjay-k1910 <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
* fix: unauthorized error message Signed-off-by: sanjay-k1910 <[email protected]> * fix: sonarlint issue Signed-off-by: sanjay-k1910 <[email protected]> * refactor: error messages Signed-off-by: sanjay-k1910 <[email protected]> --------- Signed-off-by: sanjay-k1910 <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
What?
Updated unauthorized error message when a user tries to use API with the invalid access token
Previous response:
Refactored response:
Why?
If an unauthorized user tries to access API then it should return a proper error message.