Many thanks Nick. I was able to do it with your Python app and created a php curl sample available at https://github.com/ochamber/guacamole_users
BR. Olivier. Le lun. 7 janv. 2019 à 12:13, Nick Couchman <[email protected]> a écrit : > > > On Mon, Jan 7, 2019 at 6:01 AM Olivier Chamberaud < > [email protected]> wrote: > >> Hi, >> >> I was able to get information thru curl & php but the token has a time to >> live of 60 minutes. >> >> Is there a way to login to Guacamole with username/password and get a >> valid token? >> if yes, can you please provide a sample URL on the way to do it (I've >> tried >> https://baseURL/guacamole/api/tokens/get?username=username&password=password >> without succes) >> or better a way to set a token that never expires (until revocation)? >> > > Please see: > > > https://github.com/necouchman/guacamole-python/blob/9ac3f9ff7728d976d6107809700cbdd6f0c97fdd/guacamole-cli.py#L21-L32 > > I do not believe you can do it with an HTTP GET request, but you can do it > with the HTTP POST request as used in the above code. > > -Nick > -- Cordialement. Olivier Chamberaud
