Hi,
We're working on a portal for our customers so they can order VM's (and other stuff) without having to login to our Proxmox GUI. All works well thanks to the API, but now we want to be able to show the user the console.
The API documentation tells us that we should do a POST on
Now here is where it get's trickey. Our portal has credentials to do API-calls, but the user that wants to see the console doesn't. So I created a script that gets the vncproxy-call and runs the vncproxy-call via the API on the actual cluster. This works, and I get a user, port and ticket in return, which I return to novnc.
When I try to 'just reverse proxy' the vncwebsocket-call, I always get a 401 No ticket. I assume that that is because the vncwebsocket-call also needs credentials, but that makes little sense to me, because we just created a ticket in the first call?
So my question is basically, does the vncwebsocket-call also need API-credentials, of the PVEAuth-Cookie, or did I miss something else that's causing this to not work?
Thanks!
We're working on a portal for our customers so they can order VM's (and other stuff) without having to login to our Proxmox GUI. All works well thanks to the API, but now we want to be able to show the user the console.
The API documentation tells us that we should do a POST on
vncproxy
first, and a GET on vncwebsocket
afterwards, with the info we got from the first call.Now here is where it get's trickey. Our portal has credentials to do API-calls, but the user that wants to see the console doesn't. So I created a script that gets the vncproxy-call and runs the vncproxy-call via the API on the actual cluster. This works, and I get a user, port and ticket in return, which I return to novnc.
When I try to 'just reverse proxy' the vncwebsocket-call, I always get a 401 No ticket. I assume that that is because the vncwebsocket-call also needs credentials, but that makes little sense to me, because we just created a ticket in the first call?
So my question is basically, does the vncwebsocket-call also need API-credentials, of the PVEAuth-Cookie, or did I miss something else that's causing this to not work?
Thanks!
Last edited: