I'm one of the maintainers of the proxmoxer python library and I'm trying to get it working with PBS. I have several issues when trying to get the API tokens working. They work perfectly with PVE, but there seem to be issues/differences with PBS.
- Why is the separator for the token id from the value different between PVE and PBS?
PVEAPIToken=<user>@<realm>!<token_name>=<token_value>
vsPBSAPIToken=<user>@<realm>!<token_name>:<token_value>
. pbs code showing colon, pbs docs, and pve docs. - With my testing using PBS 1.0-1 (ISO install), I can't get any API Token to work. The contents of the "Authorization" header is
PBSAPIToken=root@pam!test1<separator>e4bed930-8720-451b-b040-a342042f00b8
. Using a "=" separator gives me the error 401authentication failed - invalid token name
, using a ":" separator gives me the error 400invalid realm in user id
, using "::" as the separator gives me the error 401authentication failed - invalid credentials
, and passing onlyPBSAPIToken=root@pam!test1
gives the error 401authentication failed - failed to split API token header
. - I saw that the api viewer data has not been exported yet. Is that something that I (or others in the community) could help with?