File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/edu/harvard/iq/dataverse/authorization/providers/shib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class ShibServiceBean {
5252 private static final String INCOMMON_MDQ_API_BASE = "https://mdq.incommon.org" ;
5353 private static final String INCOMMON_MDQ_API_ENTITIES_URL = INCOMMON_MDQ_API_BASE + "/entities/" ;
5454 private static final String INCOMMON_WAYFINDER_URL = "https://wayfinder.incommon.org" ;
55-
55+ private static final String INCOMMON_ORGANIZATION_ATTRIBUTE = "OrganizationDisplayName" ;
5656 /**
5757 * "Production" means "don't mess with the HTTP request".
5858 */
@@ -233,7 +233,7 @@ public String getAffiliationViaMDQ(String shibIdp) {
233233 if (event == XMLStreamConstants .START_ELEMENT ) {
234234 String currentElement = xmlr .getLocalName ();
235235
236- if ("" .equals (currentElement )) {
236+ if (INCOMMON_ORGANIZATION_ATTRIBUTE .equals (currentElement )) {
237237 int eventType = xmlr .next ();
238238 if (eventType == XMLStreamConstants .CHARACTERS ) {
239239 String affiliation = xmlr .getText ();
You can’t perform that action at this time.
0 commit comments