Skip to content

Commit

Permalink
[SHIBUI-899]
Browse files Browse the repository at this point in the history
Added forceAuthn changes to getRelyingPartyOverridesRepresentationFromAttributeList.

This code looks eerily similar to JPAEntityServiceImpl...
  • Loading branch information
Bill Smith committed Sep 25, 2018
1 parent b38c899 commit a0f6e0a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ public static RelyingPartyOverridesRepresentation getRelyingPartyOverridesRepres
case MDDCConstants.DEFAULT_AUTHENTICATION_METHODS:
relyingPartyOverridesRepresentation.setAuthenticationMethods(getStringListValueOfAttribute(jpaAttribute));
break;
case MDDCConstants.FORCE_AUTHN:
relyingPartyOverridesRepresentation.setForceAuthn(getBooleanValueOfAttribute(jpaAttribute));
break;
default:
break;
}
Expand Down Expand Up @@ -158,6 +161,9 @@ public static List<org.opensaml.saml.saml2.core.Attribute> getAttributeListFromA
list.add(ATTRIBUTE_UTILITY.createAttributeWithArbitraryValues(MDDCConstants.DEFAULT_AUTHENTICATION_METHODS, MDDCConstants
.DEFAULT_AUTHENTICATION_METHODS_FN, relyingPartyOverridesRepresentation.getAuthenticationMethods()));
}
if (relyingPartyOverridesRepresentation.isForceAuthn()) {
list.add(ATTRIBUTE_UTILITY.createAttributeWithBooleanValue(MDDCConstants.FORCE_AUTHN, MDDCConstants.FORCE_AUTHN_FN, true));
}
}

return (List<org.opensaml.saml.saml2.core.Attribute>) (List<? extends org.opensaml.saml.saml2.core.Attribute>) list;
Expand Down

0 comments on commit a0f6e0a

Please sign in to comment.