Skip to content

Conversation

bmo-at-a9s
Copy link
Contributor

Description

This prevents scenarios where an endpoint that is not frequently used is no longer available once the refresh token is expired.
It does so by running goroutines in the background that use the stored credentials to perform the login to endpoints automatically before the tokens expire. As this might not be for everyone, it has to be explicitly enabled.

How Has This Been Tested?

Unit tests are provided to test this functionality.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Docs update
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have followed the guidelines in CONTRIBUTING.md, including the required formatting of the commit message

This prevents scenarios where an endpoint that is not frequently used is no longer available once the refresh token is expired.
* add ListAllEnabledConnectedCNSITokens to get all currently active cnsi endpoints
* add some synchronisation primities to the portalProxy
* add routine to refresh cnsi tokens
* run async refresh goroutines on startup and login (they automatically shut down when an endpoint is no longer active)
* make the functionality configurable
* test the added functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant