Skip to content

Commit

Permalink
[SHIBUI-1226]
Browse files Browse the repository at this point in the history
implemented update for ACSs
  • Loading branch information
jj committed Feb 13, 2019
1 parent a475f35 commit 0d115f9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ private EntityDescriptor buildDescriptorFromRepresentation(final EntityDescripto

// setup ACSs
if (representation.getAssertionConsumerServices() != null && representation.getAssertionConsumerServices().size() > 0) {
// TODO: review if we need more than a naive implementation
getOptionalSPSSODescriptorFromEntityDescriptor(ed).ifPresent(spssoDescriptor -> spssoDescriptor.getAssertionConsumerServices().clear());
for (AssertionConsumerServiceRepresentation acsRepresentation : representation.getAssertionConsumerServices()) {
AssertionConsumerService assertionConsumerService = openSamlObjects.buildDefaultInstanceOfType(AssertionConsumerService.class);
getSPSSODescriptorFromEntityDescriptor(ed).getAssertionConsumerServices().add(assertionConsumerService);
Expand All @@ -279,7 +281,7 @@ private EntityDescriptor buildDescriptorFromRepresentation(final EntityDescripto
assertionConsumerService.setLocation(acsRepresentation.getLocationUrl());
}
} else {
// TODO: implement
getOptionalSPSSODescriptorFromEntityDescriptor(ed).ifPresent(spssoDescriptor -> spssoDescriptor.getAssertionConsumerServices().clear());
}

// setup logout
Expand Down

0 comments on commit 0d115f9

Please sign in to comment.