Skip to content

fix: enabled the refreshing of token in case of expired token instead of throwing exception

Deepa Kumari requested to merge dk/enable_refresh_token into master

Type of change

  • Bug Fix
  • Feature

Does this introduce a change in the core logic?

  • No
  • Yes

Does this introduce a change in the cloud provider implementation, if so which cloud?

  • AWS
  • Azure
  • GCP
  • IBM
  • Common

Updates description?

Issue #22 (closed) describes that the token is not refreshed when large files are being uploaded using sdutil. After analysis noted that even though refresh logic was in place but it was not triggered due to conflict in code logic.

Modified the refresh logic to use configuration file config.yaml two new variables: force_refresh_token(true/false) and sdutil_session_timeout(hours). These two config variables will now let the session's token refresh during this interval.

Edited by Deepa Kumari

Merge request reports