vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
149 stars 33 forks source link

Allow provider to be configured with auth token instead of username and password #313

Closed ddelnano closed 3 months ago

ddelnano commented 3 months ago

The XO lab has been migrated to enforce OpenID Connect. This means that the normal auth of username and password does not work causing the build to break. We should allow the provider's configuration to use a token or the existing username and password auth mechanism.

=== Failed
=== FAIL: xoa  (0.00s)
Running sweeping
2024/03/10 00:00:14 [DEBUG] Running Sweepers for region (true):
2024/03/10 00:00:14 [DEBUG] Running Sweeper (xenorchestra_vdi) in region (true)
2024/03/10 00:00:14 [DEBUG] Completed Sweeper (xenorchestra_vdi) in region (true) in 8.863347ms
2024/03/10 00:00:14 [ERROR] Error running Sweeper (xenorchestra_vdi) in region (true): error getting client: jsonrpc2: code 3 message: invalid credentials