-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Add support for scopes to terraform login #26239
Conversation
Codecov Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @jceresini! I edited the PR description to link to the relevant issue.
Rereading Martin's comment on the issue, I think there are a couple of steps remaining for this implementation:
- Set the
Scopes
field when we populateoauth2.Config
, so the client will include those in the authorization request.
(This is done)
(Should also do this in the password grant type handler for consistency, even though the only server we allow for that right now doesn't use it.)
TODO
- Add a new permutation to the
terraform login
tests to verify that the scope passes through correctly when discovery includes it, and is omitted when discovery doesn't include it.
TODO
Unless any other issues come up, I think we should be able to merge this once those two things are addressed. Hope that makes sense!
@alisdair I believe that is now addressed. I made separate tests for validating that the scopes made it to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 🎉
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Support was previously added in terraform_svchost (hashicorp/terraform-svchost#5)
This PR pulls in that version of
terraform_svchost
and adds support toterraform
to include the scope(s) in the URL generated byterraform login [hostname]
Fixes #25354