You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by doyouhas <zj...@gmail.com> on 2018/11/15 04:17:42 UTC

Guacamole Connection Sharing: URL generation

Hello all,

I am back with a question regarding the generation of the shared connection
key. I would like to hook into my application a way for my users to access
these links, however since these keys are not stored in the database, I need
to know how the hash is computed so I can generate them on my end. If
someone could point me to the location in the source where this is done,
it'd be greatly appreciated!



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Guacamole Connection Sharing: URL generation

Posted by doyouhas <zj...@gmail.com>.
Freaking sweet. Dude do you ever sleep? :D Thank you for the prompt reply!



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Guacamole Connection Sharing: URL generation

Posted by Mike Jumper <mj...@apache.org>.
The share keys are generated by the extension sharing the connection
(presumably the database auth). They are actually more abstract than a
simple key and are arbitrary credentials, though it is true that the
database auth generates a random key to be provided via a specific query
parameter. In the general case, an extension can do just about anything
with its requirements for accessing a shared connection.

Sharing credentials for an active connection are generated with a REST
request. I would recommend connecting to and sharing a connection while the
network tab of dev tools is open so you can see the overall exchange. There
will be a request which contains JSON describing the sharing credentials to
be provided to access the shared connection.

- Mike


On Wed, Nov 14, 2018, 20:17 doyouhas <zjpiazza@gmail.com wrote:

> Hello all,
>
> I am back with a question regarding the generation of the shared connection
> key. I would like to hook into my application a way for my users to access
> these links, however since these keys are not stored in the database, I
> need
> to know how the hash is computed so I can generate them on my end. If
> someone could point me to the location in the source where this is done,
> it'd be greatly appreciated!
>
>
>
> --
> Sent from:
> http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/
>