Merge staging/1.2.0 changes back to master.

This commit is contained in:
Virtually Nick
2020-06-25 06:52:23 -04:00

View File

@@ -131,9 +131,12 @@ public class AuthenticationProviderService {
samlResponse.validateTimestamps(); samlResponse.validateTimestamps();
// Grab the username, and, if present, finish authentication. // Grab the username, and, if present, finish authentication.
String username = samlResponse.getNameId().toLowerCase(); String username = samlResponse.getNameId();
if (username != null) { if (username != null) {
// Canonicalize username as lowercase
username = username.toLowerCase();
// Retrieve any provided attributes // Retrieve any provided attributes
Map<String, List<String>> attributes = Map<String, List<String>> attributes =
samlResponse.getAttributes(); samlResponse.getAttributes();