Skip to content

Commit

Permalink
Only fail if no signature present at all
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin authored and mgyongyosi committed Oct 25, 2023
1 parent 96e0d74 commit ef8268d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ func (sp *ServiceProvider) ValidateLogoutResponseRedirect(query url.Values) erro
}

if err := sp.validateSignature(doc.Root()); err != nil {
if err != errSignatureElementNotPresent && !hasValidSignature {
if err != errSignatureElementNotPresent || !hasValidSignature {
retErr.PrivateErr = err
return retErr
}
Expand Down

0 comments on commit ef8268d

Please sign in to comment.