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

This change adds the response body output when an error occurs. #22

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

ctennis
Copy link
Contributor

@ctennis ctennis commented Dec 12, 2022

As is, if there is a problem with the auth flow, it's not obvious what the issue might be beyond a generic "400" error response. In our case the swallowed error was:

{"error":"invalid_grant","error_description":"The application's assurance requirements are not met by the 'subject_token'."}

This just adds that to the output.

This also does a small restructure to make sure we're closing the response body per golang guidelines.

…, if there is a problem with the auth flow, it's not obvious what the issue might be beyond

a generic "400" error response. In our case the swalled error was:

 {"error":"invalid_grant","error_description":"The application's assurance requirements are not met by the 'subject_token'."}

This just adds that to the output.

This also does a small restructure to make use we're closing the response body per golang guidelines.
@nickgamb
Copy link

This looks good to me pending review from @MikeMondragon-okta

Copy link
Contributor

@MikeMondragon-okta MikeMondragon-okta left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @ctennis

@MikeMondragon-okta MikeMondragon-okta merged commit 1b433d1 into okta:master Dec 15, 2022
@monde
Copy link
Collaborator

monde commented Dec 15, 2022

PR has QC errors, I need to have GH action QC merges.
https://github.com/okta/okta-aws-cli/actions/runs/3707041401/jobs/6282977995

@monde monde mentioned this pull request Dec 22, 2022
@monde
Copy link
Collaborator

monde commented Dec 22, 2022

GA v0.1.0 has been released 🎉

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.

4 participants