appsmith
appsmith copied to clipboard
[Task]: Add Error Handling for Oauth authorize and refresh flows
Is there an existing issue for this?
- [X] I have searched the existing issues
SubTasks
Currently, the Oauth authorize and refresh flows are assuming only happy flows.
Basic error handling is missing. Due to this, if anything fails, the user is not aware of the errors while using Appsmith and all they get is the 401 : Unauthorized
message while using authenticated apis
@sanveer-osahan can I take this up ? can you tell what we are trying to achieve and How do I reproduce this issue?
Hey @Abhijeetmishr, yes you may take this up. Please follow the guidelines for contributing.
To reproduce this, create an Authenticated API datasource where the token endpoint returns an error during authorization.
You can see that the datasource will be created successfully while it shouldn't.
The API created on this datasource will give 401
error without letting the user know what was the actual error throughout this flow.