mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-1293: Add tunnel support for setting the name during client handshake.
This commit is contained in:
@@ -341,6 +341,11 @@ public class TunnelRequestService {
|
|||||||
AuthenticatedUser authenticatedUser = session.getAuthenticatedUser();
|
AuthenticatedUser authenticatedUser = session.getAuthenticatedUser();
|
||||||
UserContext userContext = session.getUserContext(authProviderIdentifier);
|
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 {
|
try {
|
||||||
|
|
||||||
// Create connected tunnel using provided connection ID and client information
|
// Create connected tunnel using provided connection ID and client information
|
||||||
|
Reference in New Issue
Block a user