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 committed Feb 3, 2023
1 parent 8197ae7 commit 5f476db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_provider.go
Expand Up @@ -1547,7 +1547,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 5f476db

Please sign in to comment.