GUACAMOLE-990: The UserContext passed to redecorate() should NOT be the internal DecoratedUserContext wrapper.

This commit is contained in:
Michael Jumper
2022-08-18 12:26:55 -07:00
parent 8cc7e47de2
commit 0e5a3cb74f

View File

@@ -145,7 +145,7 @@ public class DecoratedUserContext extends DelegatingUserContext {
if (authProvider != userContext.getAuthenticationProvider()) { if (authProvider != userContext.getAuthenticationProvider()) {
// Apply next layer of wrapping around UserContext // Apply next layer of wrapping around UserContext
UserContext redecorated = authProvider.redecorate(decorated, UserContext redecorated = authProvider.redecorate(decorated.getDelegateUserContext(),
userContext, authenticatedUser, credentials); userContext, authenticatedUser, credentials);
// Do not allow misbehaving extensions to wipe out the // Do not allow misbehaving extensions to wipe out the