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

Support STS session tokens #39

Open
ipmb opened this issue Jan 11, 2022 · 1 comment
Open

Support STS session tokens #39

ipmb opened this issue Jan 11, 2022 · 1 comment

Comments

@ipmb
Copy link

ipmb commented Jan 11, 2022

For local development it may be desirable to use STS to retrieve temporary credentials, but it doesn't work currently because the view doesn't pass the token into the signed request as far as I can tell. There is code to add it here:

if token:
policy_dict["conditions"].append({"x-amz-security-token": token})

Some info on using these to sign requests is here.

image

To resolve this, a new optional setting named AWS_SESSION_TOKEN could be added that will be passed into the signature generation function as the token keyword arg.

@ipmb
Copy link
Author

ipmb commented Jan 11, 2022

It looks like this is what's needed bradleyg#170

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

No branches or pull requests

1 participant