GUACAMOLE-990: The UserContext passed to redecorate() should NOT be the internal DecoratedUserContext wrapper.
This commit is contained in:
1 parent
8cc7e47de2
commit
0e5a3cb74f
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user