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

OAuth2 failed to fetch token error using 1.11.0 #282

Closed
displague opened this issue Dec 1, 2022 · 0 comments · Fixed by #283
Closed

OAuth2 failed to fetch token error using 1.11.0 #282

displague opened this issue Dec 1, 2022 · 0 comments · Fixed by #283
Labels
bug Something isn't working

Comments

@displague
Copy link
Member

When accessing only the Equinix Metal resources, it is typical to not have provider settings client_id, client_secret, or token defined.

In Equinix Provider version 1.11.0, when these values are not defined the following error is returned:

Error: oauth2: failed to fetch token: Post "https://api.equinix.com/oauth2/v1/token": oauth2: error when acquiring token: code: S1006, message Login Failure, please try again.

This appears to be caused by additional OAuth2 Token processing introduced in #230. The Fabric API client should not attempt to exchange a Client ID and Client Secret for an OAuth2 access token when the Client ID and Client Secret are not defined.

Workarounds:

  • Revert and/or pin version 1.10 of the provider
  • export EQUINIX_API_TOKEN="-"
@displague displague added the bug Something isn't working label Dec 1, 2022
@displague displague pinned this issue Dec 1, 2022
@ctreatma ctreatma unpinned this issue Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant