Skip to content
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

Update authentication logic to handle network issues #5010

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

samgst-amazon
Copy link
Contributor

@samgst-amazon samgst-amazon commented Oct 24, 2024

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Ensure user is not prompted to reauthorize when there are any network errors that cause failure while refreshing tokens, and the token is not expired. Network errors are currently defined as errors containing UnknownHostException or Unable to execute HTTP request:

  • notify user of network issues just once to reduce spam
Screenshot 2024-11-07 at 10 47 02 AM

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

github-actions bot commented Oct 25, 2024

Qodana Community for JVM

2 new problems were found

Inspection name Severity Problems
Redundant qualifier name 🔶 Warning 2

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@samgst-amazon samgst-amazon force-pushed the samgst/UserFacingNetworkErrors branch from e4d55ff to f255e8b Compare October 29, 2024 22:37
@samgst-amazon samgst-amazon marked this pull request as ready for review October 31, 2024 16:09
@samgst-amazon samgst-amazon requested a review from a team as a code owner October 31, 2024 16:09
samgst-amazon and others added 5 commits October 31, 2024 11:37
…es/MessagesBundle.properties

Co-authored-by: manodnyab <[email protected]>
…orkErrors

Merge remote-tracking branch 'origin/main' into samgst/UserFacingNetworkErrors
…oolkit-jetbrains into samgst/UserFacingNetworkErrors

pull reviewed changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants