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

Let AWS auth CLI helper only generate login data #3015

Merged
merged 2 commits into from
Jul 18, 2017

Conversation

joelthompson
Copy link
Contributor

This will be useful to other golang clients so they can manage the login
process themselves.

I wasn't sure if I should put this here or in the api/ folder -- I feel like that might be more appropriate, but I don't want to force all API clients to pull in the AWS Go SDKs if they're not using them, so this seems like it might be a better place? Open to suggestions on where best to put this, if it makes sense to include.

}
// Generates the necessary data to send to the Vault server for generating a token
// This is useful for other API clients to use
func GenerateLoginData(accessKey, secretKey, sessionToken, headerValue string) (*map[string]interface{}, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Same problem here -- don't need it to be a pointer!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

This will be useful to other golang clients so they can manage the login
process themselves.

Also helps for hashicorp#2855
@joelthompson joelthompson force-pushed the aws_iam_headers_helper branch from b3687e0 to 9bae272 Compare July 18, 2017 00:39
@jefferai
Copy link
Member

Thanks!

@jefferai jefferai merged commit 98e3c9e into hashicorp:master Jul 18, 2017
@joelthompson joelthompson deleted the aws_iam_headers_helper branch July 18, 2017 12:47
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.

2 participants