It is possible to embed a ticket or a token in an URL?

Franco Bramucci

New Member
Aug 25, 2023
1
0
1
Hello. I'm trying to make an URL that if you click redirects you directly to a noVNC console of a virtual machine. I now that the ticket is saved in a cookie called PVEAuthCookie, so I tried to pass the ticket in the URL as:

https://$PROXY:8006/?console=kvm&novnc=1&vmid=$VMID&vmname=$VMNAME&node=$NODE&resize=off&[B]PVEAuthCookie=$TICKET[/B]&cmd=

Also adding ... &CSRFPreventionToken= $CSRF& ...

Then I tried:

https://$PROXY:8006/?console=kvm&novnc=1&vmid=$VMID&vmname=$VMNAME&node=$NODE&resize=off&[B]Cookie="PVEAuthCookie=$TICKET"[/B]&cmd=
https://$PROXY:8006/?console=kvm&novnc=1&vmid=$VMID&vmname=$VMNAME&node=$NODE&resize=off&[B]ticket="PVEAuthCookie=$TICKET"[/B]&cmd=

I don't even know if it is possible to pass the ticket as a query parameter. If it's not possible in which way can I make it work? Or what can I do to have a session with the ticket I generated instead of putting user and pass?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!