Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Policy and Duration parameters to stscreds.WebIdentityRoleOptions #1670

Merged

Conversation

gdavison
Copy link
Contributor

Adds the Policy and Duration parameters from sts.AssumeRoleWithWebIdentityInput to stscreds.WebIdentityRoleOptions.

Closes #1662

@jasdel jasdel force-pushed the sts-assumerolewithwebidentityprovider-policy branch from 67edb47 to dc0d996 Compare April 22, 2022 17:16
Copy link
Contributor

@jasdel jasdel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to create this PR @gdavison the change looks good. I've also updated the handling of WebIdentityRoleOptions.Duration to only be assigned to AssumeRoleWithWebIdentityInput.DurationSeconds if the Duration option is not 0. Relying on STS to handle assigning a default value when the DurationSeconds parameter is not in the request.

@jasdel jasdel merged commit b0a3c24 into aws:main Apr 25, 2022
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.

stscreds.WebIdentityRoleProvider does not support the sts.AssumeRoleWithWebIdentityInput field Policy
2 participants