IBM / go-sdk-core

The go-sdk-core repository contains core functionality required by Go code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
30 stars 24 forks source link

Fix caching of access tokens #51

Closed mkistler closed 4 years ago

mkistler commented 4 years ago

This PR makes a small but important fix to the IAM and CP4D authenticators that fixes the way tokens are cached for future use. Previously, the authenticator passed to the Authenticate method was passed by value, and when the token was stored into this authenticator, it was lost when the Authenticate method returned. The fix is to pass the authenticator to Authenticate by reference, so that the token is stored in the caller's authenticator object and then available for subsequent calls.

ibm-devx-automation commented 4 years ago

:tada: This PR is included in version 3.2.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: