diff options
author | Udo Walter | 2020-06-18 05:14:59 +0200 |
---|---|---|
committer | Udo Walter | 2020-06-18 05:14:59 +0200 |
commit | ced83b2dae2763449cc5c57591ba024dd7bc3d56 (patch) | |
tree | 3f8f002c21f7aaf7fb782903254f9c4610dcbc47 /src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java | |
parent | Better debug spam for connection checks (diff) | |
download | bwlp-guacamole-ext-ced83b2dae2763449cc5c57591ba024dd7bc3d56.tar.gz bwlp-guacamole-ext-ced83b2dae2763449cc5c57591ba024dd7bc3d56.tar.xz bwlp-guacamole-ext-ced83b2dae2763449cc5c57591ba024dd7bc3d56.zip |
Send resolution from the users browser to the server and try to autologin the user on the client.
Diffstat (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java')
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java index 2fcc6a6..88208b9 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java @@ -31,6 +31,7 @@ public class BwlpUserContext extends AbstractUserContext { private final AuthenticatedUser authUser; private final UserContext originalContext; private final Integer groupid; + private final String resolution; /** * The Directory with access to all connections within the root group associated @@ -38,11 +39,12 @@ public class BwlpUserContext extends AbstractUserContext { */ private Directory<Connection> connectionDirectory; - public BwlpUserContext(AuthenticatedUser authenticatedUser, UserContext context, int groupid) + public BwlpUserContext(AuthenticatedUser authenticatedUser, UserContext context, int groupid, String resolution) throws GuacamoleCredentialsException { authUser = authenticatedUser; originalContext = context; this.groupid = groupid; + this.resolution = resolution; // OK addConn(); } @@ -51,12 +53,14 @@ public class BwlpUserContext extends AbstractUserContext { authUser = authenticatedUser; originalContext = context; this.groupid = -1; + this.resolution = ""; connectionDirectory = new SimpleDirectory<Connection>(exConn); } private void addConn() throws GuacamoleCredentialsException { WrappedConnection connection = ConnectionManager.getForUser(authUser.getCredentials().getUsername(), groupid); if (connection != null) { + connection.remoteLogin(authUser.getCredentials(), this.resolution); connection.setContext(this); connectionDirectory = new SimpleDirectory<Connection>(connection); } else { |