mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #108] [MERGED] Allow token authentication #235
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/108
Author: @mraerino
Created: 3/20/2021
Status: ✅ Merged
Merged: 3/20/2021
Merged by: @ggongaware
Base:
master← Head:feat/api-token-auth📝 Commits (1)
1d41b50Allow token authentication📊 Changes
2 files changed (+21 additions, -1 deletions)
View changed files
📝
proxmox/client.go(+12 -0)📝
proxmox/session.go(+9 -1)📄 Description
Proxmox allows people to create API tokens with limited privileges that can be rotated without deleting a user account. It is usually useful for giving automated systems specific access to parts of the Proxmox API, e.g. a single VM resource pool.
The current authentication flow used for the Proxmox client is not compatible though:
Instead the required auth flow for API tokens is described here:
Adds a new method
SetAPITokenon theClientandSessionto use this method.Related to https://github.com/hashicorp/packer/pull/10797
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.