Skip to content

Commit

Permalink
[SHIBUI-1226]
Browse files Browse the repository at this point in the history
implement TODO for security configuration update
  • Loading branch information
jj committed Feb 13, 2019
1 parent d4e2a94 commit a475f35
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ private EntityDescriptor buildDescriptorFromRepresentation(final EntityDescripto
}
}
} else {
// TODO: implement
getOptionalSPSSODescriptorFromEntityDescriptor(ed).ifPresent( spssoDescriptor -> {
spssoDescriptor.setAuthnRequestsSigned((Boolean) null);
spssoDescriptor.setWantAssertionsSigned((Boolean) null);
spssoDescriptor.getKeyDescriptors().clear();
});
}

// setup ACSs
Expand Down Expand Up @@ -303,6 +307,10 @@ private EntityDescriptor buildDescriptorFromRepresentation(final EntityDescripto
return ed;
}

private Optional<SPSSODescriptor> getOptionalSPSSODescriptorFromEntityDescriptor(EntityDescriptor entityDescriptor) {
return Optional.ofNullable(getSPSSODescriptorFromEntityDescriptor(entityDescriptor, false));
}

private SPSSODescriptor getSPSSODescriptorFromEntityDescriptor(EntityDescriptor entityDescriptor) {
return getSPSSODescriptorFromEntityDescriptor(entityDescriptor, true);
}
Expand Down

0 comments on commit a475f35

Please sign in to comment.