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: expiration time of the ImpersonatedCredentials token depending on the current host's timezone #932

Merged

Commits on Jul 14, 2022

  1. fix: refreshAccessToken method of ImpersonatedCredentials class now o…

    …btains the given expiration time date's timezone correctly instead of using local timezone
    ivan-f-n committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    50d3a5c View commit details
    Browse the repository at this point in the history
  2. Fix bug in ImpersonatedCredentials class where the date received as e…

    …xpirationTime was being incorrectly parsed, assuming the date was in the default JVM timezone instead of reading from the date string what timezone it was.
    ivan-f-n committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    8ad0f77 View commit details
    Browse the repository at this point in the history
  3. fix: formatting

    ivan-f-n committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    bafd0ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d85d431 View commit details
    Browse the repository at this point in the history
  5. test: tests now change the timezone of the calendar used when parsing…

    … the date instead of returning dates in different timezones
    
    Expose to tests the calendar object used by the SimpleDateFormat object of the refreshAccessToken method in the ImpersonatedCredentials class
    That way we stop relying on returning dates in different timezones in the expireTime returned by the mockTransportFactory
    ivan-f-n committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    3576e93 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4e12ce8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5a6937c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    62d7b08 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2022

  1. Configuration menu
    Copy the full SHA
    98c1516 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2022

  1. Configuration menu
    Copy the full SHA
    76aa904 View commit details
    Browse the repository at this point in the history