CASC-29
compare names directly for SAMLSubject since it does not implement equals
This commit is contained in:
parent
30fad36127
commit
5686f256d6
|
|
@ -148,8 +148,8 @@ public class Saml10TicketValidator extends AbstractUrlBasedTicketValidator {
|
|||
|
||||
if (statement instanceof SAMLAttributeStatement) {
|
||||
final SAMLAttributeStatement attributeStatement = (SAMLAttributeStatement) statement;
|
||||
|
||||
if (subject.equals(attributeStatement.getSubject())) {
|
||||
// used because SAMLSubject does not implement equals
|
||||
if (subject.getNameIdentifier().getName().equals(attributeStatement.getSubject().getNameIdentifier().getName())) {
|
||||
for (final Iterator iter2 = attributeStatement.getAttributes(); iter2.hasNext();)
|
||||
attributes.add(iter2.next());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue