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

fix: Handling broken token issues #1301

Merged
merged 2 commits into from
Nov 9, 2020
Merged

Conversation

piotradamczyk5
Copy link
Contributor

@piotradamczyk5 piotradamczyk5 commented Nov 5, 2020

Fixes #1293

Test Plan

How do we know the code works?

When there is a problem with the token listed in the checklist, a proper message with fix instructions is displayed and a bad token file is deleted

Checklist

  • Handle expired token
  • Handle revoked token
  • Handle issues during serialization
  • Unit tested

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2020

Timestamp: 2020-11-09 08:16:42
Buildscan url for ubuntu-workflow run 353482237
https://gradle.com/s/dyylax2oujnek

@bootstraponline bootstraponline changed the title fix: Handling bad token issues fix: Handling broken token issues Nov 5, 2020
@Sloox
Copy link
Contributor

Sloox commented Nov 6, 2020

does this fix the windows issues with google tokens? 👍

@piotradamczyk5
Copy link
Contributor Author

piotradamczyk5 commented Nov 6, 2020

does this fix the windows issues with google tokens? 👍

I think that it was fixed before by @adamfilipow92
This PR fixes expired or bad token handling

@piotradamczyk5 piotradamczyk5 marked this pull request as ready for review November 6, 2020 15:58
@bootstraponline bootstraponline force-pushed the #1293_invalid_token_handling branch from 4a7c327 to b5bb0ce Compare November 6, 2020 15:58
@piotradamczyk5 piotradamczyk5 force-pushed the #1293_invalid_token_handling branch 2 times, most recently from 9cee851 to 9c17363 Compare November 6, 2020 16:17
@Test
fun `getDefaultBucket on 400 with authentication error should throw exception with specific message`() {
val expected = """
Could not load user authentication, please
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strange line wrapping.

@piotradamczyk5
Copy link
Contributor Author

@Mergifyio rebase

@mergify
Copy link

mergify bot commented Nov 9, 2020

Command rebase: success

Branch has been successfully rebased

@bootstraponline bootstraponline force-pushed the #1293_invalid_token_handling branch from 9c17363 to 8431552 Compare November 9, 2020 08:11
@mergify mergify bot merged commit ab55fbc into master Nov 9, 2020
@mergify mergify bot deleted the #1293_invalid_token_handling branch November 9, 2020 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid auth tokens fail confusingly
3 participants