On 08/02/2022 10:08, Caleb Coverdale - calebcoverd...@me.com.INVALID wrote:
I was wondering if there was a way I could get the connection URL’s encoded in the same format that the auth header json uses?
As far as I know, yes (but it should be confirmed by Guacamole devs/maintainers). If your connection is called "joe_10.1.2.3_3389" (because you passed the JSON below to this Guacamole extension), you have to b64 its name + FF char + NUL char + "json". The result would be
"/#/client/am9lXzEwLjEuMi4zXzMzODkAYwBqc29u". In Python3, a method to do generate that result could be: connection_id = "joe_10.1.2.3_3389" return base64.b64encode( connection_id.encode() + "\0c\0json".encode() ).decode() Toine ------- { "username": "joe", "expires": 1644335456000, "connections": { "joe_10.1.2.3_3389": { "protocol": "rdp", "parameters": { "create-drive-path": "false", "hostname": "10.1.2.3", ... } ... } --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org For additional commands, e-mail: user-h...@guacamole.apache.org