-
Notifications
You must be signed in to change notification settings - Fork 222
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
Improve Client Registration Error Collection #4993
base: main
Are you sure you want to change the base?
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at [email protected]
|
...community/src/software/aws/toolkits/jetbrains/core/credentials/sso/SsoAccessTokenProvider.kt
Fixed
Show fixed
Hide fixed
...community/src/software/aws/toolkits/jetbrains/core/credentials/sso/SsoAccessTokenProvider.kt
Fixed
Show fixed
Hide fixed
…json & stored in cache
1498d93
to
e723169
Compare
if (registration == null) { | ||
val message = "Unable to load client registration from cache" | ||
val (message, reason) = when { | ||
currentToken.expiresAt.isBefore(Instant.now(clock)) -> Pair( |
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.
may need to change this whole block but I still need to add reauth logic here!
e723169
to
a93e410
Compare
a93e410
to
7504455
Compare
} catch (e: Exception) { | ||
throw e | ||
} |
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.
?
Types of changes
Description
Error loading client registration - Error collection
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.