GUAC-1001: Generate a username if blank, too.

This commit is contained in:
Michael Jumper
2015-01-22 17:12:16 -08:00
parent 0893493893
commit 32754af507

View File

@@ -86,7 +86,7 @@ public abstract class SimpleAuthenticationProvider
tokenFilter.filterValues(config.getParameters());
// Return user context restricted to authorized configs
if (username != null)
if (username != null && !username.isEmpty())
return new SimpleUserContext(username, configs);
// If there is no associated username, let SimpleUserContext generate one