[GH-ISSUE #31] OTP support for https backend #13

Closed
opened 2026-02-27 15:45:58 +03:00 by kerem · 4 comments
Owner

Originally created by @antonakv on GitHub (Jul 3, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/31

Ticket request is failing with proxmoxer.core.ResourceException: 401 Unauthorized: No ticket - b'' when otp is enabled but not set in REST api request.

Please add otp token support for https backend

otp field is optional here https://pve.proxmox.com/pve-docs/api-viewer/index.html#/access/ticket

Originally created by @antonakv on GitHub (Jul 3, 2020). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/31 Ticket request is failing with proxmoxer.core.ResourceException: 401 Unauthorized: No ticket - b'' when otp is enabled but not set in REST api request. Please add otp token support for https backend otp field is optional here https://pve.proxmox.com/pve-docs/api-viewer/index.html#/access/ticket
kerem 2026-02-27 15:45:58 +03:00
Author
Owner

@jhollowe commented on GitHub (Jul 3, 2020):

We can definitely add this, but I would suggest using API tokens as they can be locked down more and can be disabled easily if they are compromised.

<!-- gh-comment-id:653669179 --> @jhollowe commented on GitHub (Jul 3, 2020): We can definitely add this, but I would suggest using API tokens as they can be locked down more and can be disabled easily if they are compromised.
Author
Owner

@jhollowe commented on GitHub (Jul 3, 2020):

note-to-self: I imagine PVE will renew valid tickets without OTP, but we should check that before attempting to add support for OTP.

<!-- gh-comment-id:653677509 --> @jhollowe commented on GitHub (Jul 3, 2020): note-to-self: I imagine PVE will renew valid tickets without OTP, but we should check that before attempting to add support for OTP.
Author
Owner

@antonakv commented on GitHub (Jul 4, 2020):

@jhollowe That's possible, though valid ticket generation is not possible when OTP is enabled for all the accounts.

<!-- gh-comment-id:653742747 --> @antonakv commented on GitHub (Jul 4, 2020): @jhollowe That's possible, though valid ticket generation is not possible when OTP is enabled for all the accounts.
Author
Owner

@antonakv commented on GitHub (Jul 4, 2020):

We can definitely add this, but I would suggest using API tokens as they can be locked down more and can be disabled easily if they are compromised.

API tokens aren't available in my configuration. I tried to do before.

<!-- gh-comment-id:653742974 --> @antonakv commented on GitHub (Jul 4, 2020): > We can definitely add this, but I would suggest using API tokens as they can be locked down more and can be disabled easily if they are compromised. API tokens aren't available in my configuration. I tried to do before.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#13
No description provided.