We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62d6aa6 + 0daa077 commit b28812bCopy full SHA for b28812b
src/main/java/edu/harvard/iq/dataverse/Shib.java
@@ -421,6 +421,9 @@ private String getValueFromAssertion(String key) {
421
Object attribute = request.getAttribute(key);
422
if (attribute != null) {
423
String attributeValue = attribute.toString();
424
+ if(systemConfig.isShibAttributeCharacterSetConversionEnabled()) {
425
+ attributeValue = new String(attributeValue.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
426
+ }
427
String trimmedValue = attributeValue.trim();
428
if (!trimmedValue.isEmpty()) {
429
logger.fine("The SAML assertion for \"" + key + "\" (optional) was \"" + attributeValue + "\" and was trimmed to \"" + trimmedValue + "\".");
0 commit comments