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

RolesAnywhere-3788: Include token TTL header in token API response #22

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

13ajay
Copy link
Contributor

@13ajay 13ajay commented Dec 28, 2022

Description of changes:

Include token TTL header in the response to the token API when serving a local endpoint.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@13ajay 13ajay force-pushed the fix/RolesAnywhere-3788 branch 2 times, most recently from d717747 to 5ae07a1 Compare December 28, 2022 19:15
@@ -228,6 +270,9 @@ func Serve(port int, credentialsOptions CredentialsOpts) {
refreshableCred.SecretAccessKey = credentialProcessOutput.SecretAccessKey
refreshableCred.Token = credentialProcessOutput.SessionToken
refreshableCred.Expiration, _ = time.Parse(time.RFC3339, credentialProcessOutput.Expiration)
refreshableCred.Code = "Success"
Copy link
Contributor

Choose a reason for hiding this comment

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

Extract "Success" and "AWS-HMAC" to constants, maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed this and added another commit to this PR.

@13ajay 13ajay force-pushed the fix/RolesAnywhere-3788 branch from b3b039c to 67cfd99 Compare January 17, 2023 15:21
@13ajay 13ajay merged commit 6f08015 into main Jan 17, 2023
@13ajay 13ajay deleted the fix/RolesAnywhere-3788 branch January 17, 2023 15:25
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