On Wed, Aug 31, 2022 at 4:11 PM Philipp Zeitschel
<[email protected]> wrote:
>
> Hi,
>
> i've requested an authToken via /api/tokens:
>
> {"authToken":"54808533B1CCE7176838021B9CDD87583B04C67A9E1476A4621D453DA7F4A4AF","username":"blub","dataSource":"json","availableDataSources":["mysql","mysql-shared","json"]}
>
> i could manually inject it into the webapp:
>
> localStorage.setItem('GUAC_AUTH', 
> '{"authToken":"54808533B1CCE7176838021B9CDD87583B04C67A9E1476A4621D453DA7F4A4AF","username":"blub","dataSource":"json","availableDataSources":["mysql","mysql-shared","json"]}')
>
> what is the correct way to request an authToken and then redirect a User to 
> the guacamole-client to establish an connection?
>

Perhaps you could start by explaining, at a higher level, what it is
you're trying to do? Guacamole-Client handles this by itself - when
you go to the web app, it checks for valid credentials, presents a
login page (or redirects you to a SSO provider), and then presents the
home page. I assume you're trying to do something a bit more
programmatic, but maybe you could just explain, from a "user
experience" perspective, what it is you want to accomplish?

-Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to