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 Authenticateby reference, so that the token is stored in the caller's authenticator object and then available for subsequent calls.
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 theAuthenticate
method was passed by value, and when the token was stored into this authenticator, it was lost when theAuthenticate
method returned. The fix is to pass the authenticator toAuthenticate
by reference, so that the token is stored in the caller'sauthenticator
object and then available for subsequent calls.