guacamole-rest-api-documentation icon indicating copy to clipboard operation
guacamole-rest-api-documentation copied to clipboard

May I ask how to obtain the UID after/#/client?

Open goodsave opened this issue 1 year ago • 1 comments

Test

May I ask how to obtain the UID after /#/client?

look forward to your reply, thank u so mach ~

goodsave avatar Apr 26 '23 10:04 goodsave

found it how to do it here: https://gist.github.com/atomlab/376901845c3d474d1e60e6b7a3affaae

basically its a bas64 encoding of some info

 /*

                    The necessary information is indeed there - you just need to know how to generate the URL. The base64 bit after ".../guacamole/client/" in the URL of a connection is built from the following information:

                    The connection identifier (in MySQL / PostgreSQL, this will be the connection ID)
                    The type ("c" for connections and "g" for balancing groups)
                    The identifier of the auth provider storing the connection data (usually "postgresql", "mysql", or "ldap" - in your case the correct value would be "mysql")

                    
                    */

                    // printf '2\0c\0postgresql' | base64

ludersGabriel avatar Jan 18 '24 15:01 ludersGabriel