On Tuesday, April 11, 2017 12:44 PM, Paulo Gonçalves <[email protected]> 
wrote:


> I'm trying to build a extension that creates connections on demand, but
> from what I can observe, the getUserContext of the
> AuthenticationProvider is only called on user login. 


You'll have to expand a little bit what you mean by "creates connections on 
demand?"  Perhaps a few more steps describing what you intend to happen from 
the time you load the page until the connection - e.g., Page is loaded, user 
logs in, user clicks on button x, etc.


> Is it possible to call this method after login?

Possibly so, but it's also possible that there's an alternative way to do 
whatever it is you're trying to do, so a little additional info might help 
determine this.
> I tried to refresh the page with the F5 key but it didn't work. 


getUserContext is probably only called when user authentication is requested, 
and it isn't requested every single time the page is refreshed.

> Is it possible to add a button some where on the page (with the html key of 
> guac-manifest.json file) that refreshes the connections list?

Refreshes it from what?  Again, a little more detail here would help out - for 
starters, where are you storing the connections?

-Nick

Reply via email to