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

This commit is contained in:
Michael Jumper
2015-08-29 23:27:29 -07:00
parent 379229dee5
commit caccb37af3

View File

@@ -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