GUACAMOLE-38: Quick fix-up for userContext object in AuthenticationProvider

This commit is contained in:
Nick Couchman
2018-04-15 22:58:19 -04:00
parent d608643bb6
commit bb127c55d2

View File

@@ -45,7 +45,11 @@ public class QuickConnectAuthenticationProvider extends AbstractAuthenticationPr
public UserContext getUserContext(AuthenticatedUser authenticatedUser) public UserContext getUserContext(AuthenticatedUser authenticatedUser)
throws GuacamoleException { throws GuacamoleException {
return new QuickConnectUserContext(this, authenticatedUser.getIdentifier()); if (userContext == null)
userContext = new QuickConnectUserContext(this,
authenticatedUser.getIdentifier());
return userContext;
} }