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

This commit is contained in:
Michael Jumper committed 2015-01-22 17:12:16 -08:00
1 parent 0893493893
commit 32754af507
1 file changed
+1 -1
@@ -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