-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust logic to validate creds before assumerole
Previously, a bug existed that prevented session-derived creds from being used when assuming a role. This is because session- derived creds would not be gathered until the very last moment. Since all the assumerole logic was passed before this last moment, assumerole could not work with session-derived creds. Now, GetCredentials has a new contract - it provides and validates credentials. Before, GetCredentials would sometimes return unvalidated creds and sometimes validated creds. This meant that more error handling logic needed to be included in GetSession and GetSessionOptions. As part of validating creds, GetCredentials now gets session-derived creds, if necessary, prior to assuming a role.
- Loading branch information
Showing
2 changed files
with
87 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters