Skip to content

Commit 6e696ee

Browse files
authored
Merge branch 'develop' into 11855-version-summaries-pagination
2 parents 28673b6 + 19e67ef commit 6e696ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/edu/harvard/iq/dataverse/authorization/providers/shib/ShibServiceBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)