diff --git a/lib/WeBWorK/Authen/Saml2.pm b/lib/WeBWorK/Authen/Saml2.pm index 4719aa856d..6c77f65a0e 100644 --- a/lib/WeBWorK/Authen/Saml2.pm +++ b/lib/WeBWorK/Authen/Saml2.pm @@ -73,7 +73,8 @@ sub do_verify ($self) { ->handle_response($c->stash->{saml2}{samlResp}); my $assertion = Net::SAML2::Protocol::Assertion->new_from_xml( xml => $decodedXml, - key_file => $self->spKeyFile->to_string + key_file => $self->spKeyFile->to_string, + cacert => $idpCertificateFile->to_string ); # Get the database key containing the authReqId that was generated before redirecting to the identity provider.