Method: Spid::Saml2::ResponseValidator#certificate

Defined in:
lib/spid/saml2/response_validator.rb

#certificateObject



70
71
72
73
74
75
76
77
# File 'lib/spid/saml2/response_validator.rb', line 70

def certificate
  if response.certificate.to_der == settings.idp_certificate.to_der
    return true
  end

  @errors["certificate"] = "Certificates mismatch"
  false
end