GUAC-586: Only use cached configurations within SimpleAuthenticationProvider if truly from same instance.

This commit is contained in:
Michael Jumper committed 2015-09-02 19:51:27 -07:00
1 parent 379229dee5
commit caccb37af3
1 file changed
+1 -1
@@ -202,7 +202,7 @@ public abstract class SimpleAuthenticationProvider
throws GuacamoleException {
// Pull cached configurations, if any
if (authenticatedUser instanceof SimpleAuthenticatedUser)
if (authenticatedUser instanceof SimpleAuthenticatedUser && authenticatedUser.getAuthenticationProvider() == this)
return ((SimpleAuthenticatedUser) authenticatedUser).getAuthorizedConfigurations();
// Otherwise, pull using credentials