Skip to content

Add refresh mechanism for auth tokens

Shivam Bairoliya requested to merge sbairoliya/add_auth_token_refresh into master

Before raising this MR, consider whether the following are required, and complete if so:

  • Unit tests
  • Metrics
  • Documentation update(s)

Description

Currently when the auth token is specified to the channel, the hardcoded auth token is used for the lifetime of the channel. If the token might expire with this mechanism. The goal of this MR to update the logic of the interceptors to use a file path that is read from and the token is refreshed

Changes proposed in this merge request:

  • Add the auth token loader class to read token from a file
  • Default token read again time is set to 60*60 or 1 hour
  • The interceptor now expects the auth token loader to provide it the token instead of using the direct auth token

Validation

Unit Tests

Edited by Shivam Bairoliya

Merge request reports