Skip to content

Commit

Permalink
fix authnresponse
Browse files Browse the repository at this point in the history
  • Loading branch information
maditya committed Oct 7, 2016
1 parent 3acf8ec commit c1a4663
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions authnresponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func (r *Response) Validate(s *ServiceProviderConfig) error {
if r.Assertion.Subject.SubjectConfirmation.SubjectConfirmationData.Recipient != s.AssertionConsumerServiceURL {
return errors.New("subject recipient mismatch, expected: " + s.AssertionConsumerServiceURL + " not " + r.Assertion.Subject.SubjectConfirmation.SubjectConfirmationData.Recipient)
}
if s.IDPCert == nil {
return errors.New("IDPCert is nil")
}

err := VerifyResponseSignature(r.originalString, s.IDPCert.Raw)
if err != nil {
Expand Down

0 comments on commit c1a4663

Please sign in to comment.