GUACAMOLE-1293: Add tunnel support for setting the name during client handshake.

This commit is contained in:
Virtually Nick committed 2023-01-10 21:10:43 -05:00
1 parent 3abecff0d1
commit 236164c6ec
1 file changed
+5
@@ -340,6 +340,11 @@ public class TunnelRequestService {
GuacamoleSession session = authenticationService.getGuacamoleSession(authToken);
AuthenticatedUser authenticatedUser = session.getAuthenticatedUser();
UserContext userContext = session.getUserContext(authProviderIdentifier);
// Attempt to get the username and set it for the tunnel client.
String name = authenticatedUser.getCredentials().getUsername();
if (name != null)
info.setName(name);
try {