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

feat(IamAssumeAuthenticator): introduce new authenticator type #229

Open padamstx opened 1 week ago

padamstx commented 1 week ago

This commit introduces the new IamAssumeAuthenticator which will fetch an IAM access token using the IAM getToken operation's "assume" grant type. The resulting access token allows the application to assume the identity of a trusted profile, similar to the "sudo" feature of Linux.

padamstx commented 1 week ago

@michaelbeck Michael, this PR contains the new authenticator that uses the "assume" grant type. If you have a chance, I'd appreciate any feedback you might have, especially on the documentation changes in the Authentication.md file. Thanks!

padamstx commented 1 day ago

I've updated the PR with changes that make an IamAssumeAuthenticator instance immutable after construction. The changes are in a second commit, so it should be easy to see the differences.

padamstx commented 23 hours ago

Re-requested reviews mainly to just look over the new changes (second commit).