Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open more than one session in the same browser #6

Open
gormux opened this issue Dec 3, 2018 · 5 comments
Open

Cannot open more than one session in the same browser #6

gormux opened this issue Dec 3, 2018 · 5 comments

Comments

@gormux
Copy link

gormux commented Dec 3, 2018

Hello,

I use this auth plugin to make a custom portal.
I can open a session to a computer, no problem.
But if I open a second session, the first one disconnects.

I use the "normal" guacamole client :
http://my_guacamole:8081/guacamole?token=%s&&GUAC_DATA_SOURCE=jwt&GUAC_ID=%s&GUAC_TYPE=c&GUAC_USERNAME=%s
where token is obtained via /guacamole/api/token
GUAC_ID is randomly generated, and GUAC_USERNAME obtained from the token answer of the API.

Using a very basic client (this one : #1), I don't have the issue.

So I suppose the "normal" guacamole client does not like something in the way I use it, but I cannot find what. Maybe it does not support using different usernames in the same browser ?

I can open multiple connections using multiple browsers, so I'm pretty sure the guacamole client is the cause.

Is this a known issue ? Are there other people using this auth plugin and the normal guacamole client ?

@aronson
Copy link

aronson commented Feb 8, 2019

We have JWT integration at my company using this plugin. I've noticed that the normal guacamole client will not support multiple "authorized" sessions in the same browser session.

I think it's related to how Guacamole caches credential tokens, and that when a new session is open it somehow overrides the old credential. It's related to session state as far as I can tell.

Hopefully you find a solution!

@gormux
Copy link
Author

gormux commented Feb 8, 2019

So, you use another client ? If so, is it available to the public, or is it internal ?

@iota-008
Copy link

iota-008 commented Mar 4, 2023

Hi! can we pass the authToken in Headers instead of URL?

@aiden0z
Copy link
Owner

aiden0z commented Mar 21, 2024

@iota-008 yes, the new v1.5.4 version has supported pass token in headers, please refer the readme for details.

@Ed1lan
Copy link

Ed1lan commented Nov 19, 2024

@gormux I am not using this extension but I ended up here with the same problem, so, I'll say what I discovered if that helps anyone in the future.
Guacamole itself handles multiple sessions in the same browser because it uses the same API token in each of them. Whenever a session is opened, the access credentials are stored in LocalStorage and overrides previous ones on the process, that's probably why multilpe sessions are not working for you either for me, you must use a single token access in the same browser to fix the issue.
Sorry if my english is bad, hope it helps someone in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants