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?