diff --git a/extensions/guacamole-auth-saml/src/main/java/org/apache/guacamole/auth/saml/AuthenticationProviderService.java b/extensions/guacamole-auth-saml/src/main/java/org/apache/guacamole/auth/saml/AuthenticationProviderService.java index 063f0dc8b..263928a0f 100644 --- a/extensions/guacamole-auth-saml/src/main/java/org/apache/guacamole/auth/saml/AuthenticationProviderService.java +++ b/extensions/guacamole-auth-saml/src/main/java/org/apache/guacamole/auth/saml/AuthenticationProviderService.java @@ -131,9 +131,12 @@ public class AuthenticationProviderService { samlResponse.validateTimestamps(); // Grab the username, and, if present, finish authentication. - String username = samlResponse.getNameId().toLowerCase(); + String username = samlResponse.getNameId(); if (username != null) { - + + // Canonicalize username as lowercase + username = username.toLowerCase(); + // Retrieve any provided attributes Map> attributes = samlResponse.getAttributes();